当前位置: 代码迷 >> Web前端 >> 过滤器配备多个url-pattern
  详细解决方案

过滤器配备多个url-pattern

热度:1099   发布时间:2012-09-02 21:00:34.0
过滤器配置多个url-pattern

过滤器配置多个url-pattern

?

<filter-mapping>
???? <filter-name>MohrssFilter</filter-name>
???? <url-pattern>/nav.jsp</url-pattern>
?</filter-mapping>
?<filter-mapping>
???? <filter-name>MohrssFilter</filter-name>
???? <url-pattern>/sys/home/sys_home_main/sysHomeSearch_script.jsp</url-pattern>
?</filter-mapping>
?<filter-mapping>
???? <filter-name>MohrssFilter</filter-name>
???? <url-pattern>/hrt/mohrss/student/tree1.jsp</url-pattern>
?</filter-mapping>

?

错误方式:

?

<filter-mapping>
???? <filter-name>MohrssFilter</filter-name>
???? <url-pattern>/hrt/mohrss/student/tree1.jsp</url-pattern>

??? <url-pattern>/nav.jsp</url-pattern>

?</filter-mapping>

?

<filter-mapping>
???? <filter-name>MohrssFilter</filter-name>
???? <url-pattern>/hrt/mohrss/student/tree1.jsp;/nav.jsp</url-pattern>



?</filter-mapping>

  相关解决方案