Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Urgent!!: How to use getUserPrincipal and getRemoteUser of the request????

843833Aug 6 2003 — edited Aug 7 2003
Hi i'm trying to get authenticated in a J2EE application using Websphere as server, when i call the java method getUserPrincipal of the request im getting a null value, but when im doing the same thing in a weblogic server im getting the right user name!!! do youn know what could be wrong?
In Websphere securty documentation a found the following text:

"The methods getRemoteUser() and getUserPrincipal() return
null as a result even if the user is logged in, unless the servlet or the JSP itself is secured."

How can i secure a JSP or servlet by itself??



thanks in advance....


Eric P�rez
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2003
Added on Aug 6 2003
1 comment
274 views