Your only recourse is to sse a Valve. (Which is just like a filter but tomcat
specific)
-Tim
Ben Bookey wrote:
Hi Tim,
Apologies for hassling you again with this.
Any idea without getting inside of the TC source, how I can
write some code just b4 and after the user login validation into the webapp
with using the TC Realm
and j_security_check ?? or must I go inside of the source :-(
regards
Ben
p.s. I got this idea from a ibm websphere help doc, where it is possible !
-----Ursprungliche Nachricht-----
Von: Tim Funk [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 3. Februar 2005 12:41
An: Tomcat Users List
Betreff: Re: Login filter
Filters cannot be run on j_security_check.
-Tim
Ben Bookey wrote:
Dear List,
I would like to perform an action after the user logs in to our app.
We are using the tomcat Realm security model, with an Oracle database.
So therefoer I am trying to implement a filter in Tomcat 4.1.27, which
checks for all requests on the url /j_security_check
I know my filter is initialised because I do a out.println
to a logfile. But for some reason when I do a successful login
it doesnt perform the doFilter() method, so I suspect its something
to with the mapping below.
Any hints?
regards
'===========================================================================
================
Here is the entry to the web.xml
<filter>
<filter-name>LoginFilter</filter-name>
<description>Performs pre-login and post-login
operation</description>
<filter-class>com.myorg.myapp.filter.LoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/j_security_check</url-pattern>
</filter-mapping>
'===========================================================================
==================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]