Suppose we have a page P1.jsp which has a corrosponding form bean,
say, TestForm. If the scope of the bean is request, then whenever we
access P1.jsp, the reset() method will be called.
If the scope is session, reset() method will be called only for the
first time, when the bean is actually loade
ActionForm objects are reused. A new one may not necessarily be
created every time a form is submitted... Struts will try and reuse
one from a pool of ActionForm objects.
If there's a free one, it calls reset() before populating it in the
controller with form values and hands it to your action.
7/2004 11:05 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
[EMAIL PROTECTED]
cc
Subject
grab form bean was Re: form reset
Hey guys,
Thanks for the response on my first question. Turns out I'm an idiot and
was pre-filling a form element vi
Hey guys,
Thanks for the response on my first question. Turns out I'm an idiot and was
pre-filling a form element via the value parameter of a tag.
However this now leads to a second question. How do I grab the form bean and the
fields? I'd like to print the value of a form field either on
Hey guys,
Thanks for the response on my first question. Turns out I'm an idiot and was
pre-filling a form element via the value parameter of a tag.
However this now leads to a second question. How do I grab the form bean and the
fields? I'd like to print the value of a form field either on
What is it doing or not doing that is giving you trouble?
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 06, 2004 4:47 PM
> To: [EMAIL PROTECTED]
> Subject: form reset
>
>
> Hi guys,
>
> I know this has been asked before... but nothi
From: <[EMAIL PROTECTED]>
> I know this has been asked before... but nothing seems to be working for
me.
> I have a ActionForm in which I reset all my fields to null.
> Can someone please not only correct me on what I'm doing wrong but also
explain why?
> form.reset( mapping, request );
This one
7 matches
Mail list logo