0 Replies Latest reply on Jun 15, 2005 7:29 PM by A P

    JAAS+SERVLET+getUserPrincipal = NULL+Form Based Authenticati

    A P Newbie

      I have created a application where simple "login.jsp" page accepts a username and password . A servlet filter
      intercepts it and authenticates the user using the JAAS login Databasemodule successfully. Then the request
      is forwarded to the requested action class.

      Now in the action class when the request.getUserPrincipal is called ,its returning NULL.
      How can I set the user credentials in the
      HttpServletRequest once the user is authenticated. Can the jboss do this automatically.

      I am using jboss4.0sp1 and FormBasedAuthentication.