在正常的项目运行中,有时我们需要某些特定的url或者servlet 或者静态资源不被struts2的过滤器所拦截
2.1.8以后貌似可以在配置文件中直接配置
在Struts2中的配置文件中配置将servlet或指定资源排除:
struts.action.excludePattern=/js/.*
struts.action.excludePattern=/aaa/bbb.cc
或者
<constant name="struts.action.excludePattern" value="/js/.*" />
<constant name="struts.action.excludePattern" value="/aaa/bbb.cc />
这个与springMVC中的静态资源配置类似~~