File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Reset the properties of Action class in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Reset the properties of Action class in struts2" Watch "Reset the properties of Action class in struts2" New topic
Author

Reset the properties of Action class in struts2

kanthi kiran
Greenhorn

Joined: Apr 04, 2008
Posts: 12
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reset the properties of Action class in struts2