jsp login page
I am new to jsp so please bear with me. I am trying to implement a simple login page by using jsp. The username and password are stored in a table called login in a mysql database(called project). I have a simple html page called login.htm which calls the jsp page called validate.jsp, but I need help to write the jsp code. Any help would be appreciated, thanks in advance.
<form action="validate.jsp" method="post">
<table cellspacing="4" border="0">
<td align="right">User name:</td>
<td><input type="text" name="userName"></td>
<td><input type="password" name="password"></td>
<td><br><input type="submit" value="Submit"></td>