aspose file tools*
The moose likes Struts and the fly likes Handling double submission in Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Handling double submission in Struts 2" Watch "Handling double submission in Struts 2" New topic
Author

Handling double submission in Struts 2

zimbu bolleddu
Ranch Hand

Joined: Jan 14, 2008
Posts: 35
Hi all,

Im new to struts,

how to handle double submission in struts.

or

how to disable submit button after first click.

please give me some code example

Thanks in advance
Vilmantas Baranauskas
Ranch Hand

Joined: Dec 20, 2006
Posts: 89
One way is to implement this using JavaScript on client side:




Author of <a href="http://www.newsinjector.com" target="_blank" rel="nofollow">NewsInjector</a>
zimbu bolleddu
Ranch Hand

Joined: Jan 14, 2008
Posts: 35
Thank you for your reply,

but it is not working.

Actually my requirement is :

When I click on Submit button it should be disable
Vilmantas Baranauskas
Ranch Hand

Joined: Dec 20, 2006
Posts: 89
If you want to disable submit button visually you may do following:
zimbu bolleddu
Ranch Hand

Joined: Jan 14, 2008
Posts: 35
Yeah it's working fine.

Thank you very much ...!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling double submission in Struts 2