This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes form should be submitted only when click on submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "form should be submitted only when click on submit button" Watch "form should be submitted only when click on submit button" New topic
Author

form should be submitted only when click on submit button

priyanaka jaiswal
Ranch Hand

Joined: Jun 03, 2011
Posts: 79
Hi,

How to avoid the form to get submitted on clicking on refresh ,it should only get submitted when clicked on submit button insted of refresh in struts


Thanks in advance
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi priyanaka,

you forget to mention about which version of struts you are using, anyway, use token to prevent submitting of duplicate forms. (struts1 and struts2 both have this feature).
priyanaka jaiswal
Ranch Hand

Joined: Jun 03, 2011
Posts: 79
thank you
Praveen Verma
Greenhorn

Joined: Sep 22, 2011
Posts: 1
hi priyanka,

struts has it inbuilt as a functionality.
check here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: form should be submitted only when click on submit button