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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sathish David Kumar NArchitectCommented:
which framwork ur using??
Sathish David Kumar NArchitectCommented:
spring have disallowDuplicateFormSubmission function in controller

other tech  (framwork)

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 ....)
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

haneef_nbAuthor Commented:

I am using struts framework
Sathish David Kumar NArchitectCommented:
Check the link and walker suggestion
Amitkumar PSr. ConsultantCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hi ,

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


haneef_nbAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.