tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Filter out certain user accounts
Date Mon, 02 Jun 2003 00:35:37 GMT
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


Mime
View raw message