Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web.xml question

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Any help/direction would be appreciated.
 
Rob Spoor
Sheriff
Pie
Posts: 20550
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Servlets forum.
 
abani patra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think you should make a custom exception class to handle that exception.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies. I'll give them a try.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic