tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Liu" <>
Subject RE: Servlet Filter Not Intercepting?
Date Tue, 01 Jan 2008 22:34:14 GMT
Thanks Martin,

The thing is, I only have one filter, and I believe the XML is specified
correctly. The behavior is something like:

Request -> target runs -> filter kicks in and I see the filter page.

I know the target gets a request because I see in the apache log a null
pointer exception. 

I feel like there is something fundamental missing in my understanding of
either filters, request/response, forward/redirect or dochain.

I'll read the IBM link now.

Thanks again,

-----Original Message-----
From: Martin Gainty [] 
Sent: Tuesday, January 01, 2008 4:46 PM
To: Tomcat Users List
Subject: RE: Servlet Filter Not Intercepting?

2 things1) the order of filter-mapping DOES matter in web.xmlin other words
1st lexically is the first filter to fire 2)any pre-initialisation of the
filter should be accomplished in the init() method()
check out this link from
Martin______________________________________________Disclaimer and
confidentiality noteEverything in this e-mail and any attachments relates to
the official business of Sender. This transmission is of a confidential
nature and Sender does not endorse distribution to any party other than
intended recipient. Sender does not necessarily endorse content contained
within this transmission.> From:> To:>
Subject: Servlet Filter Not Intercepting?> Date: Tue, 1 Jan 2008 15:36:21
-0500> > Hi all,> > > > I'm having a problem with filters. I setup filter
block access to a> resource unless the user is authenticated.> > > > I've
noticed that the resource is accessed then the filter kicks in and then>
loads.> > > > I thought filters were supposed to intercept the request
before the resource> is accessed?> > > > Is there something wrong with my
xml configuration?> > > > Thanks,> > Jay> 
Share life as it happens with the new Windows Live.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message