web.xml里filter的一些配置
<filter> <filter-name>Privilege filter</filter-name> <filter-class>filter.PrivilegeFilter</filter-class> <init-param> <param-name>failpage1</param-name> <param-value>error.jsp</param-value> </init-param> <init-param> <param-name>failpage2</param-name> <param-value>error.jsp</param-value> </init-param> </filter> <filter-mapping> <filter-name>Privilege filter</filter-name> <servlet-name>action</servlet-name> </filter-mapping>