<welcome-file-list>
<welcome-file>xxx.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Filter过滤器能够对用户请求和处理程序响应的内容进行处理。过滤器可以用于权限控制、编码转换等场合
也可以在tomcat7.0以上的服务器上在action中配置.action
在WEBROOT中建立一个xxx.action文件,然后在Struts配置xxx.action
如图:
就可以了