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