I have an HTML form that looks about like this:
<form name="form1" method="post" action="/confirm.asp">
<input type="text" name="data1" size="20" value=""><br>
<input type="text" name="data2" size="20" value=""><br>
<input type="Submit" name=submit value="Submit">
</form>
I want to use Java to pass data todata1
and data2
and read the page that follows when the form is submitted. Since this is a method=post, I cannot use http://somesite.com/confirm.asp?data1=foo&data2=foo
.
Can one please help?