It is:
request.getUserPrincipal().getName();
To check for a special role, use:
request.isUserInRole("rolename");




Am Donnerstag, den 15.09.2005, 03:49 -0700 schrieb Caroline Jen:
> I think it is getRemoteUser();
> 
> --- ±ç¬±³õ <[EMAIL PROTECTED]> wrote:
> 
> > After implementation of JDBCRealm,
> > how to retrieve the username in Servlet after login?
> > 
> > 
> > Thanks
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>               
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Sonja Löhr <[EMAIL PROTECTED]>


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

Reply via email to