怎么在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,
详见http://stackoverflow.com/questions/3125296/can-i-exclude-some-concrete-urls-from-url-pattern-inside-filter-mapping