使用struts2 标签时报错 This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed th
异常信息: This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag.
原因:直接通过*.jsp访问报以上异常信息。如果想要在jsp文件中,采用 struts的tag,那么jsp必须是通过action跳转得到,也就是必须通过web.xml所配置的过滤器访问文件,否则会有异常。
解决:通过*.action 来访问
struts.xml文件中的配置:
<action name="" class="">
<result="success">/struts/aa.jsp</result>
</action>

浙公网安备 33010602011771号