filter过滤问题,只能过滤其中一部分
刚学servlet,在filter这部分遇到一个问题,请各位有经验的前辈指点
<filter-mapping>
<filter-name>AuthenticationFilter</filter-name>
<url-pattern>/myResume.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>AuthenticationFilter</filter-name>
<url-pattern>/resume_list.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>AuthenticationFilter</filter-name>
<servlet-name>/newResume.jsp</servlet-name>
</filter-mapping>
代码如上,如果在地址栏类输入
http://localhost:8080/Graduate/myResume.jsp 或 http://localhost:8080/Graduate/resume_list.jsp
如果我的session过期,均能过滤,
但是,第三个http://localhost:8080/Graduate/newResume.jsp不能过滤。
上面三个jsp文件中的不同之处在newResume.jsp我还没有写具体内容,只是这次过滤实验出的错误实在让我解决不了,请各位指点迷津。