how to pass values from 2nd page tp 3rd page....

Ads
 

how to pass values from 2nd page tp 3rd page....

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

View Answers

Ads









Related Tutorials/Questions & Answers:
how to pass values from 2nd page tp 3rd page....
how to pass values from 2nd page tp 3rd page....  Hi, How to pass values from 2nd page to 3rd page..... here are my programs(not exactly correct... how to get the values(of userid) from Login1.jsp.... plz help me
How to pass the value from controller to jsp page ?
How to pass the value from controller to jsp page ?  HI I need to pass the value from controller to jsp. I use the way like this Controller request.setAttribute("msg", "Successfully Login"); In jsp ${msg} and then i
Advertisements
pass radio button values to next page
pass radio button values to next page  how to pass selected radio button values which coming from mysql database to next page using php. Please show me with examples
How to pass multiple values from a servlet to JSP?
How to pass multiple values from a servlet to JSP?  hi, I want to pass multiple values form a servlet to JSP. Hw do i do that? I am able to send one value at a time without any prb, but I am unable to carry multiple (from two
How to pass Array of string from action class to jsp page
How to pass Array of string from action class to jsp page  this is my... = con.createStatement(); rs = st.executeQuery("SELECT * FROM user_charges...("SELECT * FROM user_charges WHERE TEST_CODE="+tcode); while (rs.next
How to fetch entries/values from database to a jsp page one by one?
How to fetch entries/values from database to a jsp page one by one?  I have a table in Microsoft SQL server Management Studio with two columns title and data and each column has 10 enteries. I have a jsp page on which i want
how to pass string array from action class to jsp page? pls reply me.
how to pass string array from action class to jsp page? pls reply me.  how to pass string array from action class to jsp page? pls reply me.  ...); And through your jsp page, get array values. <% try { String[] str = (String
how to pass variable from simple java main class(not servlet) to the jsp page?
how to pass variable from simple java main class(not servlet) to the jsp page?  I have a simple Java class in which I invoke a call to a JSP page... from the simple Java class to the JSP page. How can I do that? Here is my
[JSP] How to pass back ID to previous page.
[JSP] How to pass back ID to previous page.  Hi experts, May I ask something. How to link a page to previous page which the content in previous page is selected from database where IDPRODUCT=". I don't know how to pass back
1st 2nd & 3rd Normal Form
1st 2nd & 3rd Normal Form  print("code sample");Im a intermediate App& Web Programmer and a novie when it comes to data base, just had the basic sql 101 in college. I really want to understand the normal forms and am having
how to create a slider on jsp page n slider has values from 0-4
how to create a slider on jsp page n slider has values from 0-4  i want to create a slider on jsp page and slider has values from 0-4   Using the jquery, you can create a slider in jsp. <html> <head> <
pass to next page
on 2nd page like a summary (too many fields for cookies) all the code i am finding...pass to next page  I am working on a school project no server client side only. 1st page you enter data such as name, address, DoB etc.(textboxes
actually i want to knw how to include an google page inside a tab(suppose in 2nd tab).can any one help me....
how to include an google page inside a tab(suppose in 2nd tab).can any one help me....  actually i want to knw how to include an google page inside a tab(suppose in 2nd tab).can any one help me
How to redirect from a HTML page?
How to redirect from a HTML page?  Hi, Is it possible to redirect from HTML page to another page on the net? I have one page and I want to redirect it to another page. What will be the code for redirecting the page to another
Pass values from form to form
Pass values from form to form       Java program to pass values from one form to another form... values from one page to another consecutive page which is being called then we can
Values from servlet into dropdownlist in jsp page using ajax
Values from servlet into dropdownlist in jsp page using ajax  1) jsp file <%@page import="java.sql.Statement"%> <%@page import...); } } } Im not able to get values retrived from
how to remove the column from a java web page
how to remove the column from a java web page  i have a web page with account#, qtr, year if i want to remove the year column which is a drop down list from my jsp what should i do and what is the process please give a brief view
How to pass an arraylist from servlet to jsp?
How to pass an arraylist from servlet to jsp?  Hello, Can anyone please tell me how to pass an arraylist from servlet to jsp? I have two arraylist one of type String and the other int. How to send both the arraylists from
how to give link from jsp to jsp page
how to give link from jsp to jsp page  hi this is my following code... file is Modify but here i have to give modifyUser.jsp file but i don't khow how...: <%@ page import="java.sql.*" %> <html> <head> <script
how to give link from jsp to jsp page
how to give link from jsp to jsp page  hi this is my following code... file is Modify but here i have to give modifyUser.jsp file but i don't khow how...: <%@ page import="java.sql.*" %> <html> <head> <script
How to read and display data from a .properties file from a jsp page
How to read and display data from a .properties file from a jsp page  I have a .properties file. I have to create a jsp page such that it reads the data from this .properties file and display it in table format. Ex:by using
Pass value of rasio button from jsp page to action class(not conventional problem)
Pass value of rasio button from jsp page to action class(not conventional problem)  Hi, I have a jsp page that has code which goes ike this: <... button) to be deleted On clicking 'delete' button . Hence I need to pass eventId
How to prevent from navigating to ck buttonnext page when user reaches login page using back button
How to prevent from navigating to ck buttonnext page when user reaches login... 2)Page with link to open pdf files When i lo-gin,it takes me to 2nd page where...,the 2nd page session gets expired but on next click on forward button,the pdf
How to prevent from navigating to a page after reaching Login page using back button?
How to prevent from navigating to a page after reaching Login page using back... with link to open pdf files When i lo-gin,it takes me to 2nd page where... login page using back button and agin click browser forward button,the 2nd page
3rd&5th highest salary from a table
3rd&5th highest salary from a table  how we get 3rd highest and 5th highest salary from a table
Pass value from JSP to JavaScript
Pass value from JSP to JavaScript       We can also pass the value from a JSP page to the java...; In our this example of passing values from jsp page to java script we have created
how to pass a string from one class to another
how to pass a string from one class to another  hi all, Good morning. I am trying to develop a coding pass a string from one class and declare in other class. the string which i need to pass is the data from an file and i want
how to read values from java in xml?
how to read values from java in xml?  how to read values from java in xml
How to Get The Data from Excel sheet into out jsp page???
How to Get The Data from Excel sheet into out jsp page???  How to Get The Data from excel sheet to out jsp page in webApp
How can i pass the valus from a JSP to the action class???
How can i pass the valus from a JSP to the action class???  hewllo wevryone... can anyone help me with how i can pass the value of menuId in my JSP and pass it in the action class
How we delete a data of database from front end jsp page
How we delete a data of database from front end jsp page   I make a website and featch a data from data base and now i want that a delete button put... deleted from jsp page as well as from database.I used mysql and jsp. Please help me

Ads