参见 http://ocaicai.iteye.com/blog/1312189
最重要的而是在web.xml中配置
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
下面的dispatcher 一定要,很多文档没说清这个.
时间: 2024-11-07 06:17:23