My users are authenticated by the database user login module of JAAS. the problem is getUserPrincipal() call in a JSP is not returning the user name. it returns null for authenticated user. what might be the problem.
Thanks in advance,
Senthil Kumar M Rangasamy
Unless the jsp page is secured, getUserPrincipal() will return null. That is the only time the caller is authenticated and is associated with the request. If you want to track a user as part of a session you have to put the principal in the session.