<<  < 2013 - >  >>
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31




struts2和dwr在s2sh中使用的时候,会出现过滤器配置冲突的问题,解决方案:

1配置

<constant name="struts.action.excludePattern" value="/dwr/.*,/dwr/test/.*" />

目的:让struts2在与别的框架共同协作完成系统的时候,当路径与其他框架出现冲突的时候,struts2提供了

excludePattern的类,使之将配置的全局变量中的值(亦为路径)在struts2中的路径中过滤掉,如上表示的是

在/dwr/*下边 和/dwr/test/*下边的路径不在使用拦截器拦截

而dwr框架在这两个路径是会使用dwr的拦截器进行拦截处理

 

  • 标签:struts2 dwr 
    发表评论:
    天涯博客欢迎您!