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?
I am trying not to override the values entered by the user on this result
page.
Because when an error occurs the page is redisplayed and since I am getting
the values fr
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
Newsbeitrag
news:[EMAIL PROTECTED]
> 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:
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
chrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> > 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 matches
Mail list logo