dcsimg
A login page.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, January 4, 2005 01:39 AM

Administrator's Login Page function checkValues() { if(document.login.userid.value=="") { alert("Enter your User Id"); document.login.userid.focus(); return false; } if(document.login.userpswd.value=="") { alert("Enter your password"); document.login.userpswd.focus(); return false; } return true; } ]]>]]> Administrator's Login Page Enter Your Login -Id &nbsp&nbsp&nbsp&nbsp Enter Your Password &nbsp&nbsp&nbsp    More>>
Administrator's Login Page














Administrator's Login Page












Enter Your Login -Id &nbsp&nbsp&nbsp&nbsp




Enter Your Password &nbsp&nbsp&nbsp














User has to enter id and password. How do I get further so that the next page i.e welcome.jsp would display the id which is entered in the userid using servlets.    <<Less

Re: A login page.

Posted By:   WarnerJan_Veldhuis  
Posted On:   Tuesday, January 4, 2005 02:42 AM

First of all you need to change the action of your form to point it to a servlet, for example: action="/servlets/MyLoginServlet"


Then you need to handle the login, and forward the request, using RequestDispatcher) to either welcome.jsp (if the login was ok), or login.jsp (if the login failed)

About | Sitemap | Contact