伪静态对struts action的重写

参见 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 一定要,很多文档没说清这个.

posted @ 2015-03-05 17:21  NewObject_1  阅读(95)  评论(0编辑  收藏  举报