Sorry for the misleading. You are right Jeanfrancois. Thank you for pointing this out.
If only user name needed, try getRemoteUser(). If principal(user) object needed, try getUserPrincipal(). Regards, Michael -----Original Message----- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 11:53 AM To: Tomcat Users List Subject: Re: Retrieve User - Realm I think you are wrong. What he is looking for is: HttpServletRequest.getUserPrincipal() that return the java.security.Principal object created within the Realm. -- Jeanfrancois -- Jeanfrancois Tam, Michael wrote: >It is in the API. Take a look at >javax.servlet.http.HtppServletRequest.getRemoteUser() > >Cheers, >Michael > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Friday, December 13, 2002 10:14 AM >To: [EMAIL PROTECTED] >Subject: Retrieve User - Realm > > >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]> > >-- >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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
