File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes how to reset form bean properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to reset form bean properties" Watch "how to reset form bean properties" New topic

how to reset form bean properties

purushotham podaralla

Joined: Sep 12, 2007
Posts: 29

i have too many controls are there to reset the values when form loads initially. i have around fifty controls are there. when i use reset method in form bean need to set all properties to null. and then i am calling this method when form loading method. i am using struts 1.2. is there any solution to use without setting to null in the reset() method. please do thhe needful.

Thanks in Advance.

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

Cant get your question ! If you don't want to set properties to null in reset() method, then set them to some blank values like, for String, assign "" string..

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
I agree. Here's the link:
subject: how to reset form bean properties
It's not a secret anymore!