tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Bookey" <>
Subject AW: Login filter
Date Thu, 03 Feb 2005 14:43:45 GMT
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 :-(

p.s. I got this idea from a ibm websphere help doc, where it is possible !

-----Ursprungliche Nachricht-----
Von: Tim Funk []
Gesendet: Donnerstag, 3. Februar 2005 12:41
An: Tomcat Users List
Betreff: Re: Login filter

Filters cannot be run on j_security_check.


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:
For additional commands, e-mail:

View raw message