使用Struts2.3.16时,过滤器使用org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
使用struts2.5.14时,过滤器使用org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
web.xml中配置如下:
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
chapter02
struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
struts2
/*
index.html
index.jsp