0
我有我要在多個頁面上使用過濾器:的Java Servlet過濾器參數
<filter>
<filter-name>PermissionFilter</filter-name>
<filter-class>filters.PermissionFilter</filter-class>
</filter>
.......
<filter-mapping>
<filter-name>PermissionFilter</filter-name>
<url-pattern>/faces/folder1</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>PermissionFilter</filter-name>
<url-pattern>/faces/folder2</url-pattern>
</filter-mapping>
它可以指定過濾器映射參數(S)? 類似的東西:
<filter-mapping>
<filter-name>PermissionFilter</filter-name>
<url-pattern>/faces/folder2</url-pattern>
<init-param>
<param-name>permission</paramn-name>
<param-value>permssionNameWhichIWantToVerify</param-value>
</init-param>
謝謝!