Another solution is to have a hidden field in the form which uniquely identifies the form
submission request. When the form is submitted to the server, the server side code can
process the request and maintain a list of processed form request identifiers for this client
session. When the form is resubmitted the second time via refresh button, F5 etc, the server
side code can easily identify that it is a resubmitted request as the form request identifier
would be part of the processed list. It can then handle the case as it deems effective.


Regards,
Srini

Therefore, when the user refreshes the page,the code procss


-----Original Message-----
From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Wednesday, 18 February 2004 10:48 PM
To: Tomcat Users List
Subject: Stopping repeating requests


Hi,

        I have a problem where a user enters data into a form and then
submits this
to the server, which in turn wrights this content into a database.

The problem I have is that if the user then refreshes the page via F5
then
it adds the same data in again.

Is there any way to ensure that this does not occur.

Any help would be greatly appreciated.

Thanks

Pete


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to