1. 程式人生 > >servlet的過濾器filter類

servlet的過濾器filter類

  <!--配置過濾器A  -->   <filter>     <filter-name>FilterA</filter-name>     <filter-class>com.zhiyou100.crm.filter.FilterA</filter-class>   </filter>   <filter-mapping>     <filter-name>FilterA</filter-name>     <url-pattern>/test.jsp</url-pattern>   </filter-mapping>    <!--配置過濾器B -->   <filter>     <filter-name>FilterB
</filter-name>     <filter-class>com.zhiyou100.crm.filter.FilterB</filter-class>   </filter>   <filter-mapping>     <filter-name>FilterB</filter-name>     <url-pattern>/test.jsp</url-pattern>   </filter-mapping>    <!--配置過濾器c  -->   <filter>     <filter-name>FilterC
</filter-name>     <filter-class>com.zhiyou100.crm.filter.FilterC</filter-class>   </filter>   <filter-mapping>     <filter-name>FilterC</filter-name>     <url-pattern>/test.jsp</url-pattern>   </filter-mapping>