Hi,
My filter works for direct requests to the web server but not for requests that come from included
JSP pages.
For example, I have this filter mapping for a.jsp and b.jsp. In a.jsp, I have included this: <jsp:include page="b.jsp"/>
<filter-mapping>
<filter-name>FilterRequestTest</filter-name>
<url-pattern>/a.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>FilterRequestTest</filter-name>
<url-pattern>/b.jsp</url-pattern>
</filter-mapping>
The filter works for a.jsp but does not work for b.jsp.
I am wondering:
would <dispatcher>INCLUDE</dispatcher> resolve my problem ?
Since this is an included request (not dispatched though).
Thanks.