N年没玩Struts了,最近突然脑洞开了想做点东西玩玩。
配了一个SSH环境,发现web.xml中用到的 filter类 是StrutsPrepareAndExecuteFilter
而不是很多写Struts2配置的文章里的 FilterDispatcher
<web-app>
<display-name>Archetype Created Web Application</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
</web-app>
于是在网上查了一下,上链接
http://blog.sina.com.cn/s/blog_6ac4c6cb010190ml.html
网友评论