Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get the user info from a jsp

Hi all,

I have a jsp login page (FORM authentication) that when the user logon forward to home jsp page. Here I need to get the user info.

Now I'm using this, but it doesn't works:

String user = request.getUserPrincipal().getName();

session.setAttribute("idamUser",user);

if (request.isUserInRole( "xxxx" )) .........

Coul you please write me the right code to use and the library to import? Thanks a lot.

Vito

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question