2 Replies Latest reply on Mar 5, 2003 11:28 AM by kenkyee

    getUserPrincipal returns null on non-secured pages

    Peter Bryant Newbie

      I have a security-constraint covering a directory on my WAR file.

      I have the j_security_check form login working so that I need to login to see pages in that directory. And those pages show my identify (request.getUserPrincipal().getName())

      However, if I then navigate to a non-secured page, request.getUserPrincipal() returns null.

      Is this the correct behaviour? Or does this smell like a config problem at my end?

      Regards, Peter