I am working with a home grown security filter, SCMIS Security Filter, in our web app that makes a call to an exception java file that is located in a dependency JAR file when a user is not authenticated to access the web app.. This filter is defined in our web.xml file but I would like to know if there is anyway that I can bypass this security filter or exception when this particular exception is called so that I can redirect the user to a specific JSP in this same web app?
Here is the web.xml:
The exception method called in the JAR from the filter is:
Right now I am getting stuck in a loop when bringing up local tomcat server because I am in the security filter that keeps trying to authenticate user for access to web app and I can never get the user to the unAuthorizedUser.jsp page.