not sure which version you're using, but it seems like you could add the page (package/protected/index.html) to the <welcome-file-list> </welcome-file-list> attribute, and then in the security constraint, make it protected. Would that not work?
-----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]