tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeanfrancois Arcand <jfarc...@apache.org>
Subject Re: username as a variable?
Date Fri, 24 Jan 2003 19:04:16 GMT
You can also use HttpServletRequest.getUserPrincipal() to get the 
current user.

-- Jeanfrancois



Barney Hamish wrote:

>see the j2ee documentation on the request object...
>There is the method getRemoteUser() 
>
>  
>
>>-----Original Message-----
>>From: Shah, Sanjay [mailto:Sanjay.Shah@tfn.com]
>>Sent: Friday, January 24, 2003 6:28 PM
>>To: 'Tomcat Users List'
>>Subject: username as a variable?
>>
>>
>>
>>
>>Is there a way to catch the username from tomcat-user.xml file as a
>>variable?  I want to use the username that a user logs in as into my
>>servlet.
>>
>>Thanks
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: 
>><mailto:tomcat-user-help@jakarta.apache.org>
>>
>>    
>>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>
>  
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message