Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form should be submitted only when click on submit button

 
priyanaka jaiswal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
Praveen Verma
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi priyanka,

struts has it inbuilt as a functionality.
check here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic