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

help:html

Status
Not open for further replies.

korki

Vendor
Aug 19, 2004
1
US
My HTML question is as follows; I have a form that consists two fields. The contents of these fields are forwarded to another jsp page through the following code for database connection, and query purposes. The page that has form is suggestion.jsp, and the page that is forwarded through action is storesuggestion.jsp.
<form name="suggest" method='POST' action='storesuggestions.jsp'
onReset="BTReset();" onSubmit="return submitForm();">

Form is working fine. However, my problem is if the user refreshes the page after couple of minutes, the form recalls the previous values, which means database is updated again..
I tried to replace POST with GET but it didn't work. Any suggestions highly appreciated..
 
that's the way form POSTs work...

you could have your form processing jsp do a response.sendRedirect() to another page after processing, so refresh won't do anything wrong.



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top