yes, you can do what I suggested...I tried it out and it worked just fine. -----Original Message----- From: Ryan [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 6:10 PM To: users@tomcat.apache.org Subject: adding authentication to unprotected page
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 <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> --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]