1 Reply Latest reply on May 30, 2006 6:08 AM by Paul Anderson

    Accessing j_username and j_password

    Paul Anderson Newbie


      I have read through most of the posts on this forum concerning how one would go about getting access to the j_username and j_password values of a logged in user. I followed the instructions here:


      An example of how I am trying to access the values in my JSP is as follows:

       String username = (String) session.getAttribute("j_username");
       String password = (String) session.getAttribute("j_password");
       <p>Username: <%=username%></p>
       <p>Password: <%=password%></p>

      All is get is "null" for both username and password.... what am I doing wrong?

      Kind regards,