tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mats Nyberg>
Subject automatic login
Date Fri, 10 May 2002 10:03:07 GMT
friends, cohorts;
have an application involving user registration and "declarative 
in the end of an user registration i want the newly created user also to 
be logged in
without providing a "now you can use your new id and password to log 


i vanely thought something like -snip- would do and now after some days 
in the mud i thought
i'd swallow my pride and ask; how do one do this?


      <% session.setAttribute("tomcat.auth.originalLocation", 
"/protected/xxx.jsp"); %>
      <form method="POST" action="j_security_check" >
        Username: <input type="hidden" name="j_username" value="<%= 
userId %>"><br>
        Password: <input type="hidden" name="j_password" value="<%= 
password %>"><br>
        <input type="submit" value="login" name="j_security_check">

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message