This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Resetting the struts actionform to default values

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?

Right! We're on it! Let's get to work tiny ad!
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic