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
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
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
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
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
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
6 matches
Mail list logo