Thread: jsp login page
View Single Post
  #1 (permalink)  
Old February 21st, 2005, 11:30 AM
ronnie ronnie is offline
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default jsp login page

Hi
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.

Login.htm
<html>
<head>
<title>login</title>

</head>

<body>

    <form action="validate.jsp" method="post">
    <table cellspacing="4" border="0">
        <tr>
            <td align="right">User name:</td>
            <td><input type="text" name="userName"></td>
        </tr>
        <tr>
            <td align="right">Password:</td>
            <td><input type="password" name="password"></td>
        </tr>
        <tr>
            <td></td>
            <td><br><input type="submit" value="Submit"></td>
        </tr>
    </table>
    </form>

</body>
</html>