tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Servlet filter on j_security_check
Date Thu, 02 Feb 2006 19:53:37 GMT
You can't install a filter on j_security_check

-Tim

Martin Dubuc wrote:

>  I am using form based authentication in my  application. I would like to know if it
is possible to install a  Servlet filter on j_security_check.
>   
>   I have tried to install one, but it never gets invoked. Here is my filter definition
in application web.xml:
>   
>       <filter>
>           <filter-name>LoginFilter</filter-name>
>           <filter-class>LoginFilter</filter-class>
>           <description>Performs pre-login and post-login operation</description>
>       </filter>
>   
>       <filter-mapping>
>           <filter-name>LoginFilter</filter-name>
>           <url-pattern>/j_security_check</url-pattern>
>       </filter-mapping>
>   
>   I have some logs in the doFilter function. It seems like doFilter never  gets called.
However, if I set the url-pattern property to /*, doFilter  gets called while rendering pages,
but doesn't seem to be invoked from  j_security_check.
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message