• Post Reply Bookmark Topic Watch Topic
  • New Topic

Resetting the struts actionform to default values

Rama Krishna
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the correct way to reset the complete actionform.

I have more than 20 fields which are initialized as

in the form that extends the ActionForm itself. Whereas in the action class, I have to explicitly call another method in this actionform to reset all of the fields to their default values? i.e., in the above form, I would like to reset my form fields
Name to ""
Status to "loggedIn"
someInt to 0
and so on..

does not work either.

Any suggestions in this regards?

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!