wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to reset form bean properties
 
Similar Threads
Submitted Form values are repeated across
duplicate form submission
reset method
Will the setters be called
enctype="multipart/form-data" request.getParameter() issue