question about reset()

2003-10-27 Thread Sonam Belbase
I'm trying to understand ActionForms a bit better and here is my question: If the servlet controller automatically invokes the reset() method before passing the ActionForm bean to the Action implementation class instance, how can you use the form's properties' values in your action? Is this why

Re: question about reset()

2003-10-27 Thread Ruth, Brice
to my knowledge, reset() is called to clear the form (and perform any re-initialization), before calling the setters for the form parameters being submitted by the browser. this way, the action that accesses the actionform will always have the values submitted by the browser, no more, no less

Re: question about reset()

2003-10-27 Thread Manish Singla
Please see below .. Sonam Belbase wrote: I'm trying to understand ActionForms a bit better and here is my question: If the servlet controller automatically invokes the reset() method before passing the ActionForm bean to the Action implementation class instance, how can you use the form's

Re: question about reset()

2003-10-27 Thread Sonam Belbase
OK thanks Brice and Manish, I was not able to retrieve the values of my form properties in my action and according to your explanations, I can rule out reset() as the source of the problem. Thanks. SB Manish Singla wrote: Please see below .. Sonam Belbase wrote: I'm trying to understand

Re: question about reset()

2003-10-27 Thread Manish Singla
may be check out the scope(session/request)... Your FormBean should be stored in same scope as mentioned in struts-config.xml... Sonam Belbase wrote: OK thanks Brice and Manish, I was not able to retrieve the values of my form properties in my action and according to your explanations, I

question about reset() and multiple action forwards...

2003-07-17 Thread Dan Eklund
I have a scenario where an action-form goes through 2 actions before getting to the view... the problem that reset() solves (for multiboxes) is that because the browser does not send any values to indicate that the user checked OFF all the multiboxes, you should reset( ) to a blank slate for