This content has been marked as final.
Show 1 reply
-
1. Re: getUserPrincipal() retuns null after authentication
starksm64 Nov 4, 2004 9:32 PM (in response to sudarshanreddy)You have to use the web container security model via the web.xml descriptor in order for the servlet security apis to return useful information. Simply doing a JAAS login does not populate the servlet container security context. This is only useful for interacting with other secured resources from within a servlet.