aspose file tools
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 19958

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Web.xml question