I have a question regarding save and calcel button. I have one Editable screen where user can perform 2 action: Save/Cancel
Suppose user clicked the save button which is going to update details in database. This processing takes time. So in between user may click Cancel button. I that case, I have to abort updating database and roll back the all database changes and display previous details.
I have one more question, user may click save button for multiple time. So i was thing to disable save button after one click and let processing complete then only enable it.How it is possile.
I am looking for answer in Java/Spring MVC prospective.
Thanks Mayank
Let me summarize your problem first: "You have a form, and you want to make sure that a user can submit the form only once". - right?
or: