How to Pass/Print Parameter values in JSP
To print parameter values in input text field (value property) first write sql to extract database
values and pass to another JSP , following code will be helpful...
String RNO = request.getParameter("ReceNo");
receipt no. is database values and store its values RNO string variable.
To print its value in JSP form input text field
<td><label for="ReceiptNo">Receipt No.:</label></td>
<td><input type="text" id = "ReceiptNo" name="ReceiptNo" value="<%=request.getParameter("ReceNo")%>" size="5" /></td>
here <td>,<tr> tags in Table defined in jsp.
if any difficulty mail me at psanjayy@yahoo.com
Comments
Post a Comment