request.getRemoteUser() 
request.getUserPrincipal()

See the servlet spec for more information.

Mark



> -----Original Message-----
> From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 05, 2004 11:30 PM
> To: Tomcat Users List
> Subject: How does a servlet get a username
> 
> 
> How does a servlet get a username from a user that has been
> authenticated using either BASIC or FORM authentication?
> 
> Paul
> 
> ************************************
> This email and any files transmitted with it are proprietary 
> and intended solely for the use of the individual or entity 
> to whom they are addressed. If you have received this email
> in error please notify the sender. Please note that any views 
> or opinions presented in this email are solely those of the 
> author and do not necessarily represent those of ITT Industries, Inc.
> The recipient should check this email and any attachments for 
> the presence of viruses. ITT Industries accepts no liability 
> for any damage caused by any virus transmitted by this
> email.
> ************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to