Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spawn a new page for form submit response 1

Status
Not open for further replies.

nybz

Programmer
Mar 18, 2004
19
0
0
US
I would like for the user to press a 'submit' to view information supporting the current page. The form inputs are submitted to a Java servlet. How do I present the information in a new page?
 
depends on what the servlet sends back, i.e. does it send back html or redirect to another page?

if it sends back html, just make the target of your form "_blank":

<form action="path/to/servlet" method="post" target="_blank">

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Thank you Jeff, I didn't know that a form had a target attribute. Thanks Again!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top