How to avoid duplicate submits?

Dear Experts,

Could you please explain the mechanism that, how to prevent the duplicate submits to my web-app or resource in the web-app?
haneef_nbAsked:
Who is Participating?
 
Amitkumar PSr. ConsultantCommented:
0
 
Sathish David Kumar NArchitectCommented:
which framwork ur using??
0
 
Sathish David Kumar NArchitectCommented:
spring have disallowDuplicateFormSubmission function in controller

other tech  (framwork)
http://www.netmechanic.com/news/vol5/html_no16.htm
http://en.wikipedia.org/wiki/Post/Redirect/Get

0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
m_walkerCommented:
I am sure there will be many ways.  One idea...
When you send the form to fill in, create it on the fly and add an ID field (hidden).  Get this field from an auto_numer/sequence from a database table (ie: create a new record)... Then when they submit the form, check the database to see if that ID is in their and not processed.  

If you add a time_stamp to the record it will make cleanup easy (delete all records older then ....)
0
 
haneef_nbAuthor Commented:
Hi,

I am using struts framework
0
 
Sathish David Kumar NArchitectCommented:
Check the link and walker suggestion
0
 
saleh_neuCommented:
hi ,

if u r using struts 2 the solution is by using  token or tokenSession interceptors then in the form

<s:form>
<s:token/>
.
.
</s:form>


         
         
0
 
haneef_nbAuthor Commented:
Thanks....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.