Or, you can use request.getUserPrincipal() to get that info. That
returns a java.security.Principal object that represents the user
(getName() returns the login name).

>>> [EMAIL PROTECTED] 12/13/02 11:39 AM >>>
[EMAIL PROTECTED] wrote:

>Hello,
>
>I searched many places and read many things, but I didn't
> find any example that retrieve the user from the session
> after it is authenticated with realm.
>
>Can someone help me?
>
>Thanks.
>________________________________________________
>Don't E-Mail, ZipMail! http://www.zipmail.com/
>
>--
>To unsubscribe, e-mail:  
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>  
>
Remote user: <%= request.getRemoteUser() %>

Remote user is possibly what  you are looking for, have a look at the 
snoop.jsp example that come with tomcat.

Regards,
Simon


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



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

Reply via email to