This content has been marked as final.
Show 1 reply
-
1. Re: How to get UserName and UserID inside JSP or Standard ja
nagcareer Jun 12, 2008 7:41 AM (in response to nagcareer)hi, Got the answer by myself
you should use either :
req.getRemoteUser() or req.getUserPrincipal().getName()
if the user is not logged in then req.getRemoteUser() is null and same for req.getUserPrincipal()
Thanks
JG