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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP Button problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a jsp page that accepts information and places it into a database when the submit button is pressed. I also want it to go back to the previous page when the same submit button is pressed
I was trying something like this but with no luck
<FORM NAME=&quot;editUserForm&quot; ONSUBMIT=&quot;return checkFields()parent.location='previouspage.htm'&quot;>

Please Help if you can
 
You have to actually submit to the jsp page or servlet that is doing the database work. Once the work is done you can use a RequestDispatcher to forward or redirect the request to the previous page. Going straight to the previous page is not going to help you though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top