Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 21st, 2005, 11:30 AM
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>


  #2 (permalink)  
Old March 1st, 2005, 07:02 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

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

surendran
(Anything is Possible)
  #3 (permalink)  
Old March 30th, 2005, 07:43 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

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



Gokulan Ethiraj
  #4 (permalink)  
Old March 31st, 2005, 12:29 AM
Registered User
 
Join Date: Mar 2005
Location: NOIDA, UP, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

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

Bye

  #5 (permalink)  
Old April 12th, 2005, 11:45 PM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to dendi
Default

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! JSP Login yikchin JSP Basics 1 December 8th, 2005 02:35 AM
JSP and LOGIN cbolat JSP Basics 3 November 30th, 2005 04:11 AM
Newbie Help. Login to unique login page per user Kainan Classic ASP Professional 10 May 3rd, 2005 07:47 AM
jsp & mysql login code sos jaymak121 Java Databases 4 November 25th, 2004 06:50 AM
Help with jsp login page javaStudent JSP Basics 0 January 27th, 2004 06:08 PM





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