在线救助:web.xml配置路劲有关问题
在线救助:web.xml配置路劲问题.
我现在配置好了一个Filter.
但是呢,这个*.jsp我又想他匹配不到如:action.jsp或者function.jsp
有方法吗?
------解决方案--------------------
没有,Servlet的Mapping不支持 exclude 之类的语法。
可以自己在SessionFilter中另外判断。
我现在配置好了一个Filter.
- Java code
<filter> <filter-name>SessionFilter</filter-name> <filter-class>com.a.b.c.d.SessionFilter</filter-class> </filter> <filter-mapping> <filter-name>SessionFilter</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping>
但是呢,这个*.jsp我又想他匹配不到如:action.jsp或者function.jsp
有方法吗?
------解决方案--------------------
没有,Servlet的Mapping不支持 exclude 之类的语法。
可以自己在SessionFilter中另外判断。