You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dan Tran <da...@hotmail.com> on 2003/06/02 01:58:05 UTC
Filter out certain user accounts
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?
Re: Filter out certain user accounts
Posted by Dan Tran <da...@hotmail.com>.
supper!!!
Thanks
----- Original Message -----
From: "Tim Funk" <fu...@joedog.org>
To: "Tomcat Users List" <to...@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
Re: Filter out certain user accounts
Posted by Tim Funk <fu...@joedog.org>.
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