This content has been marked as final.
Show 2 replies
-
1. Re: getUserPrincipal() is null
ben2 May 6, 2003 9:11 AM (in response to nagasheshu)Make sure that the servlet that you are calling this from is in a secure context. Even when a user has logged in if they are viewing an unsecured page getUserPrincipal() will return null.
A poor design in my opinion. -
2. Re: getUserPrincipal() is null
kchobantonov May 9, 2003 3:51 AM (in response to nagasheshu)You can use a filter for change the default behaviour og getUserPrincipal and isUserInRole in non secured zone (an of course after success login) also you may enable calls to secured EJBs see http://www.luminis.nl/publications/websecurity.html