I have a web application with a login screen backed by an authentication filter.
I have the following in my web.xml
<filter> <filter-name>AuthenticationFilter</filter-name> <display-name>AuthenticationFilter</display-name> <filter-class>com.mycompany.secutity.AuthenticationFilter</filter-class> </filter>
And I have the following mapping -
<filter-mapping> <filter-name>AuthenticationFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
But now I want to add an exception where for a specific servlet /web/MyNewServlet I want to bypass the authentication filter. How can we do this?
source share