wood burning stoves 2.0*
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
Author

Web.xml question

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

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

Joined: Oct 27, 2005
Posts: 19651
    
  18

Moving to our Servlets forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
abani patra
Ranch Hand

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

Joined: Jun 21, 2005
Posts: 386

Thanks for the replies. I'll give them a try.
 
jQuery in Action, 2nd edition
 
subject: Web.xml question
 
Similar Threads
DBUnit, why insert test data, only to delete/re-create tables after?
moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files
s:excelExport Exception in PhaseListener
Configuring JEE security in tcServer
AccessDeniedException not going to accessDenied.xhtml