p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   JSP Basics (http://p2p.wrox.com/forumdisplay.php?f=92)
-   -   jsp login page (http://p2p.wrox.com/showthread.php?t=25847)

ronnie February 21st, 2005 11:30 AM

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>



surendran March 1st, 2005 07:02 AM

hi,
find this link
http://www.google.com/search?hl=en&l...va+server+page

surendran
(Anything is Possible)

gokul_blr March 30th, 2005 07:43 AM

You can search for online sample codes and tutorials thru www.google.com



Gokulan Ethiraj

artidatanova March 31st, 2005 12:29 AM

Hi,

  convert html page into Jsp,by using save the file as .jsp.And for vaildation use the javascript function.

Bye


dendi April 12th, 2005 11:45 PM

hi.. plese follow this link http://www.codetoad.com/java_jsp_id_verification.asp
but i think the codes need a little tweakss

hope it helps


All times are GMT -4. The time now is 07:01 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.