Data Passing through HTML and JSP
Posted on 2002-06-26
Hi, me again.
I have 3 forms, Form1, Form2 and Form3. All of them are in JSP code.
Form 1 is data entry for user to key in customer ID. Form2 is view the result information of that specific customer. Third one is for update some of the customer information.
I have a problem for passing the CustomerID from Form1 to Form3.
//No problem for this pages.
<form action="Fom2.jsp" method="POST">
//Button Submit pressed
<Input type="text" name="CustID">
// This pages manage to capture user input for customerID
<% String cust=request.getString("CustID") ;
<input type="hidden" value="request.getParameter("CustID")name="cust2">
//I need to pass the CustomerID from Form1.jsp to here for retrieve another table.
//What I do is in the form2, I put a hidden input, and try to pass the variable to Form3 through the Form2. But it's fail.
I also set the parameter in the
but it's fail also...
Any other recommandation on my approach on getting my parameter pass correctly?