版本过期如图:
org.apache.struts2.dispatcher.FilterDispatcher 换成:
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
1 <filter> 2 <filter-name>struts2CleanupFilter</filter-name> 3 <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class> 4 </filter> 5 6 <filter> 7 <filter-name>struts2Filter</filter-name> 8 <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> 9 </filter> 10 11 <filter-mapping> 12 <filter-name>struts2CleanupFilter</filter-name> 13 <url-pattern>/*</url-pattern> 14 <dispatcher>REQUEST</dispatcher> 15 <dispatcher>FORWARD</dispatcher> 16 </filter-mapping> 17 18 <filter-mapping> 19 <filter-name>struts2Filter</filter-name> 20 <url-pattern>/*</url-pattern> 21 <dispatcher>REQUEST</dispatcher> 22 <dispatcher>FORWARD</dispatcher> 23 </filter-mapping>
ActionContextCleanUp,StrutsPrepareAndExecuteFilter,StrutsPrepareFilter,StrutsEec详解:
http://justsee.iteye.com/blog/748316