You can "turn off" the cache of your pages, so the page will expires before
submiting...

<% 
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", -1); 
%>

Tiago Henrique C. R. Alves



-----Mensagem original-----
De: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 9 de dezembro de 2003 08:47
Para: Struts Users Mailing List
Assunto: Refresh -submit relation


I have a page for upload functionality which uploads the files to a
folder.

Here I am referring the struts example for uploading of files and I am
inserting the record in table at the same time.

This upload is working fine but problem is when I refresh the browser
page, the page is getting submitted again. Due to this duplicate records
are inserted in the database.

Is there any way, to stop the page to submit on refresh?





---------------------------------------------------------------------
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