• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to restrict from resubmitting the same form

 
Angel Rajiv
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a simple Struts or J2EE application, How can I prevent someone from resubmitting the same form...
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Struts, you can use tokens to prevent double submits. Just enclose your form tag witing tokens tag.
 
Angel Rajiv
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jothi,
 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi



That was for struts application ...........

Than how can we prevent double submits

in J2EE application?




Dhwani:>Winning is not important but it is the only thing.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jothi,
Please don't assume people are using Struts (or any technology other than JSP/servlets) when answering questions in this forum.

Thanks.
-Ben
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


Thanks Ben it helped a lot.


Dhwani:>Winning is not important but it is the only thing.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
Jothi,
Please don't assume people are using Struts (or any technology other than JSP/servlets) when answering questions in this forum.

Thanks.
-Ben


Ben, the original poster of this question mentioned struts and that was why I mentioned about tokens.
 
abhijit Ohal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
quick solution is to disable button once it is submitted
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!