This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes how to reset form bean properties Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 2896
    
    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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to reset form bean properties
 
Similar Threads
Will the setters be called
reset method
Submitted Form values are repeated across
duplicate form submission
enctype="multipart/form-data" request.getParameter() issue