• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reset the properties of Action class in struts2

 
kanthi kiran
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

I want to reset the form fields after submitting the form to the action in struts2. i know the very old way that at the server side
after persisting the data and before returning back to the jsp i will assign all the defaults to the properties manually.

But this is tedious in such a way that i need to set all the property's .

Is there any other way to implement it. My main aim after submitting the form all the form fields should acquire their defaults without clicking any button to reset the form fields.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic