aspose file tools*
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
Author

how to reset form bean properties

purushotham podaralla
Greenhorn

Joined: Sep 12, 2007
Posts: 29
Hi,

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.

Regards
Purushotham
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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]
 
 
subject: how to reset form bean properties