
Hi,
How to pass values from 2nd page to 3rd page..... here are my programs(not exactly correct code....)
login.jsp :
<html> <head> </head> <body> <form method="post" action="login1.jsp"> <p><b>Login: </b><input type="text" name="userid"><br> <p><b>Password: </b><input type="text" name="password"><br> <input type="submit" value="Submit"> </form> </body>
Login1.jsp :
In dis , to get the values from Login.jsp,i ve used:
<form method="post" action="details.jsp">
String uid=request.getParameter("userid");
String pwd=request.getParameter("password");
here i am checking whether userid and password matches r not if it is matched then it should go to deails.jsp and giv the details of dat userid.
Details.jsp :
Resultset rs=st.executeQuery(select * from emp where employeecode='"+uid+"'");
so in this page how to get the values(of userid) from Login1.jsp....
plz help me.......
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.