
hi i have one excuted jsp form.and in that the data should be dispaly on another jsp form.please help me thanks in advance

Hi Friend,
Try this:
1)form1.jsp:
<html> <form method="post" action="form2.jsp"> <table> <tr><td>Enter Name:</td><td><input type="text" name="name"></td></tr> <tr><td>Enter Address:</td><td><input type="text" name="address"></td></tr> <tr><td></td><td><input type="submit" value="submit"></td></tr> </table> </form> </html>
2)form2.jsp:
<%
String name=request.getParameter("name");
String address=request.getParameter("address");
%>
<html>
<h3>Getting values from previous page</h3>
<form>
<table>
<tr><td>Your Name is:</td><td><input type="text" value="<%=name%>"></td></tr>
<tr><td>Your Address is:</td><td><input type="text" value="<%=address%>"></td></tr>
</table>
</form>
</html>
Thanks
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.