struts2中文件下载迅雷显示后缀名为action的解决办法
<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>*.xls</url-pattern> </filter-mapping> <filter-mapping><filter-name>struts2</filter-name><url-pattern>*.action</url-pattern></filter-mapping>
? ? ? 2、在struts配置中加上如下的一句话
? ? ? ? ? ? ? ? ? ? ? ? ?<constant?name="action,htm,xls"?/>?
? ? ?就可以了,其它action中的处理是不用变的。