一.The Struts dispatcher cannot be found. This is usually caused by using Struts
1.The Struts dispatcher cannot be found. This is usually caused by using Struts
1.The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Strut
2.s tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher n
3.eeded for this tag. - [unknown location]
解决:
web.xml 中添加一个filter
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/action/*</url-pattern>
</filter-mapping>
1.The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Strut
2.s tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher n
3.eeded for this tag. - [unknown location]
解决:
web.xml 中添加一个filter
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/action/*</url-pattern>
</filter-mapping>
1 楼
maolin
2011-02-28
居然要这么玩,struts2.1太不厚道了,感谢;
2 楼
ldw4033
2011-06-03
感谢楼主!
3 楼
inferiority
2011-10-31
谢谢!!!!!
4 楼
itsnothing
2011-12-07
非常不错哦 嘿嘿。
问题解决了。