On Wed, Jul 23,'03 (03:34 PM GMT+0200), Struts wrote:
> Hi all
> Can I prefill the values of my form bean ahead of displaying the jsp
> page that is associated with this form?
> If yes, how?
Sure just do it in Action before you go the form or if you know they
will always be the same values you c
Check out http://jakarta.apache.org/struts/faqs/newbie.html#prepopulate
- Cecile
-Original Message-
From: Struts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:34 AM
To: [EMAIL PROTECTED]
Subject: prefill form bean ahead of the jsp
Hi all
Can I prefill the values of my form
Thanks
I am actually doing as per example, but in my action class the form is null
!!!
I mean it does not seem to create an instance of the associated form and
pass it into the execute().
Any ideas to what I am doing wrong?
Tex...
"Cecile Mercado" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:
lto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 8:11 AM
To: [EMAIL PROTECTED]
Subject: Re: prefill form bean ahead of the jsp
Thanks
I am actually doing as per example, but in my action class the form is null
!!!
I mean it does not seem to create an instance of the associated form and
pass i
AdjustmentForm = (DynaActionForm) formClass.newInstance();
> accountAdjustmentForm.initialize(mapping);
> }
>
> -Original Message-
> From: Struts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 8:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: prefill form bean ahead
mentForm"));
> > if (accountAdjustmentForm == null) {
> > accountAdjustmentForm = (DynaActionForm)
formClass.newInstance();
> > accountAdjustmentForm.initialize(mapping);
> > }
> >
> > -----Original Message-
> > From: Struts [mailto:[EMAIL PROTEC
Found it.
The struts frame work was not finding all the classes required to create the
form bean so it was giving me a null value instead of throwing an exception.
"Rick Reumann" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> On Wed, Jul 23,'03 (03:34 PM GMT+0200), Struts wrote
Found it.
The struts frame work was not finding all the classes required to create the
form bean so it was giving me a null value instead of throwing an exception.
"Struts" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Thanks
> I am actually doing as per example, but in my act
8 matches
Mail list logo