File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Web.xml question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Web.xml question" Watch "Web.xml question" New topic

Web.xml question

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 387

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

Joined: Oct 27, 2005
Posts: 20269

Moving to our Servlets forum.

How To Ask Questions How To Answer Questions
abani patra
Ranch Hand

Joined: Oct 11, 2011
Posts: 70
I think you should make a custom exception class to handle that exception.
Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 387

Thanks for the replies. I'll give them a try.
I agree. Here's the link:
subject: Web.xml question
It's not a secret anymore!