jsp pages.. prepoulating fields...

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>No:eek:f 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>
no:eek:f 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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top