This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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