my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
year getting null?
from is getting submitted when 'Refresh' button is clicked
form is getting submitted when 'Refresh' button on the browser is clicked.
Problem when refresh the page in WebLogic 8.1 Struts
execute() issue in Action class