tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barney Hamish <Hamish.Bar...@ect-telecoms.de>
Subject RE: get User object from tomcat
Date Thu, 13 Feb 2003 17:03:36 GMT
You can't. You need to go and retrieve whatever other info from your
database yourself probably using the username as the primary key.
Hamish

> -----Original Message-----
> From: fangfang cai [mailto:fcai@findlaw.com]
> Sent: Thursday, February 13, 2003 6:01 PM
> To: Tomcat Users List
> Subject: RE: get User object from tomcat
> 
> 
> 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
> 

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