Am using Tomcat 5.x

I managed to set up form based authentication to a MySQL db...

I type the URL of the protected resource, I get redirected to the login, I enter my username and password and login... This works all fine and dandy!

How would I be able to put a login form on my web sites welcome page to allow user to login from the main page?