G
graniteraju
i have 2 html pages as below:
page1.html:
<html><head>
<title>page1</title>
</head>
<body>
<table>
<tr><td>
Do you have cars?
<input type="radio" name="havecars" value="yes">yes
<input type="radio" name="havecars" value="no">no
</td></tr>
<tr>
<td>Nof cars
<select name="cars">
<option>1</option>
<option>2</option>
<option>3</option>
</select></td></tr>
<tr><td>
<input type="button" value="next">
</td></tr>
</table>
</body></html>
page2.html
<html><head><title>page 2</title></head>
<table><tr><td>
have cars?
<input type="radio" name="havecars" value="yes">yes
<input type="radio" name="havecars" value="no">no
</td></tr>
<tr><td>
nof cars
<input type="text">
</td></tr>
</table>
</html>
when I enter the values for the fields in page1 and click next I should
go to page2, which should already have its fields populated depending
on the values in page1...
Using JSP and servlets how do I do that?
thanks,
page1.html:
<html><head>
<title>page1</title>
</head>
<body>
<table>
<tr><td>
Do you have cars?
<input type="radio" name="havecars" value="yes">yes
<input type="radio" name="havecars" value="no">no
</td></tr>
<tr>
<td>Nof cars
<select name="cars">
<option>1</option>
<option>2</option>
<option>3</option>
</select></td></tr>
<tr><td>
<input type="button" value="next">
</td></tr>
</table>
</body></html>
page2.html
<html><head><title>page 2</title></head>
<table><tr><td>
have cars?
<input type="radio" name="havecars" value="yes">yes
<input type="radio" name="havecars" value="no">no
</td></tr>
<tr><td>
nof cars
<input type="text">
</td></tr>
</table>
</html>
when I enter the values for the fields in page1 and click next I should
go to page2, which should already have its fields populated depending
on the values in page1...
Using JSP and servlets how do I do that?
thanks,