Ryan wrote:
Hi All,

I was wondering if any of you had experience with this. I want to add a form
on the homepage of an application that allows the user to quickly log in
(see below) and take them to the protected page. I've never done this before
and unfortunately the form below doesn't seem to work, it basically brings
me back to the original page. Any ideas?

Thanks,
Ryan

You're submitting to an incorrect script location.
Tomcat auth, (if configured with as FORM), should be submitted to the virtual location:

  action="j_security_check"


p


     <form method="POST" action='/package/protected/index.html' >
     <table>
       <tr>
         <td>Username</td>
         <td><input type="text" class="text" name="j_username" /></td>
       </tr>
       <tr>
         <td>Password</td>
         <td><input type="password" class="text" name="j_password" /></td>
       </tr>
     </table>
     <p>
       <input type="submit" class="button" value="Login" />
     </p>
     </form>


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to