<filter-mapping>
<filter-name>struts2</filter-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
/*
struts默认只拦截REQUEST请求
所有在配置过滤器里面添加“ <dispatcher>FORWARD</dispatcher>” 这个请求。就可以成功了
*/
所有在配置过滤器里面添加“ <dispatcher>FORWARD</dispatcher>” 这个请求。就可以成功了
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>