Pass value either in a hidden form field or appended to the URL like submitID=SOMERANDOMID.
Upon processing the form, first check to see if SOMERANDOMID has already been saved to a cookie/session variable. If yes, error message "This form has already been submitted". otherwise, save SOMERANDOMID to the session or in a cookie. I like to leave a submit_it_again_anyways link for power users. --- C Cayetano <[EMAIL PROTECTED]> wrote: > All, > > Problem: > I've got a name.jsp page which has a form to get > lastname, firstname, > address, etc. > On submit the form is sent to a servlet for adding > into the database > (primary key field is an incremental record ID) > Once processed the servlet redirects to a > confirmation.jsp page > Now if the the user hits the back button, which pops > a 'retry' dialog box, > and the user hits retry button, the whole add > process is executed again and > the same lastname, firstname, address, etc. is > entered into the database, > basically creating duplicate records. > > Is there a way to prevent this? > > Thanks > > > -- > To unsubscribe: > <mailto:[EMAIL PROTECTED]> > For additional commands: > <mailto:[EMAIL PROTECTED]> > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
