当前位置:编程学习 > XML/UML >>

怎么在web.xml中配置一个<filter>对应多个<filter-mapping>

   <filter>
  <filter-name>loginFilter2</filter-name>
  <filter-class>de.base.LoginFilter</filter-class>
  </filter>
  <filter-mapping>
  <filter-name>loginFilter2</filter-name>
  <url-pattern>*.action</url-pattern>
  </filter-mapping>
  <filter-mapping>
  <filter-name>loginFilter2</filter-name>
  <url-pattern>*.jsp</url-pattern>
  </filter-mapping>
但不能排除某个具体的页面,比如不能排除index.jsp,
 
补充:Web开发 , 其他 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,