tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Tran" <dantt...@hotmail.com>
Subject Re: Filter out certain user accounts
Date Mon, 02 Jun 2003 00:48:40 GMT
supper!!!

Thanks
----- Original Message ----- 
From: "Tim Funk" <funkman@joedog.org>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Sunday, June 01, 2003 5:35 PM
Subject: Re: Filter out certain user accounts


> You should be able to cast ServletRequest  to HttpServletRequest.
>
> Then you'll have access to getUserPrincipal()
>
> -Tim
>
> Dan Tran wrote:
> > Hello, I would like the build filter to check for a site maintainant
flag set in application context and disallow certain user to passthruand
route them to another page.
> >
> > The problem here, the interface doFilter's ServletRequest does not have
access to getUserPrincipal, so I have no way to find out the actual user.
> >
> > Any work around?
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

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


Mime
View raw message