tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fangfang cai" <f...@findlaw.com>
Subject RE: get User object from tomcat
Date Thu, 13 Feb 2003 17:01:19 GMT
But how can we get the all user info from principal
like user fullname?

-Fang

-----Original Message-----
From: Jeanfrancois Arcand [mailto:jfarcand@apache.org]
Sent: Wednesday, February 12, 2003 8:24 PM
To: Tomcat Users List
Subject: Re: get User object from tomcat


Humm...not clear. I guess you mean the principal. Looks at:

HttpServletRequest.getUserPrincipal() that returns the current 
authenticated user
HttpServletRequest.isUserInRole(String role) to see if the current 
authenticated user is included in the specified logical role.

-- Jeanfrancois

fangfang cai wrote:

>Hi,
>
>Does anyone know how to get the User object(MemoryUser object) which
>contains user's fullname, roles .....?
>
>Thanks,
>
>Fang
>
>
>---------------------------------------------------------------------
>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



---------------------------------------------------------------------
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