HFJS reads as "If the Container can�t locate the right resource for the request, the filter is never invoked".
But I had the following entry in web.xml
<filter>
<filter-name>LoginCheckFilter</filter-name>
<filter-class>example.LoginCheckFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoginCheckFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
There are NO
servlet mapping for *.do.
When I typed the following in brower,
http://localhost:8080/ExampleWebProject/Test.do , I get the Http 404 error page(expected) but I can see the doFilter() being invoked.
Can someone clarify me on this?