[jboss-user] [JBoss Portal] - Re: How to get UserName and UserID inside JSP or Standard ja

nagcareer do-not-reply at jboss.com
Thu Jun 12 07:41:23 EDT 2008


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157646#4157646

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157646



More information about the jboss-user mailing list