You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by fangfang cai <fc...@findlaw.com> on 2003/02/13 03:03:47 UTC
get User object from tomcat
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
RE: get User object from tomcat
Posted by fangfang cai <fc...@findlaw.com>.
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
Re: get User object from tomcat
Posted by Jeanfrancois Arcand <jf...@apache.org>.
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