tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C Cayetano" <>
Subject how to prevent hitting back button and re-executing code?
Date Thu, 07 Feb 2002 08:58:24 GMT

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?


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message