September 2005 11:02
To: 'Struts Users Mailing List'
Subject: SV: prepopulating jsp page
Ok, so you have a different formbean coming in to this action:
The bean named createClientForm is NOT of class CreateClientForm?
If you have a bean class other than the one mapped to the executing a
is of class createClientForm
> which is mapped in the form beans of config.xml.
>
> Does the same still apply?
>
> Thanks
>
> -Original Message-
> From: Ekberg Mats KONSULT [mailto:[EMAIL PROTECTED]
> Sent: 29 September 2005 11:02
> To: 'Struts Users Ma
reateClientForm.
The bean named createCleintForm is of class createClientForm which is mapped in
the form beans of config.xml.
Does the same still apply?
Thanks
-Original Message-
From: Ekberg Mats KONSULT [mailto:[EMAIL PROTECTED]
Sent: 29 September 2005 11:02
To: 'Struts Users M
gt; Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Skickat: den 29 september 2005 11:38
> Till: user@struts.apache.org
> Ämne: RE: prepopulating jsp page
>
> Do this in your action:
>
>CreateClientForm updateForm = new CreateClientForm();
>// populate the bean her
It seems I need to reformulate my answer.
You need to CREATE a form with data for your NEXT page for populating
the fields.
You can't retrieve the form from the actionForm parameter of the action.
So you create in the execute function a form like this :
CreateClientForm updateForm = new Creat
> -Ursprungligt meddelande-
> Från: Ekberg Mats KONSULT [mailto:[EMAIL PROTECTED]
> Skickat: den 29 september 2005 12:02
> Till: 'Struts Users Mailing List'
> Ämne: SV: prepopulating jsp page
>
> Ok, so you have a different fo
pe
4 return from action
5 in jsp, get the bean from the scope you put it in
> -Ursprungligt meddelande-
> Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Skickat: den 29 september 2005 11:55
> Till: user@struts.apache.org
> Ämne: RE: prepopulating jsp page
>
> I cannot do the follow
: prepopulating jsp page
In your struts-config.xml, add a
section
Then in your action,
if (form != null)
{
localvariable = (CreateClientForm)form
}
now you can build your form bean properties as localvariable.set metods.
Vijaya
-Original Message-
From: [EMAIL PROTECTED
populate the form
either.
-Original Message-
From: Ekberg Mats KONSULT [mailto:[EMAIL PROTECTED]
Sent: 29 September 2005 10:46
To: 'Struts Users Mailing List'
Subject: SV: prepopulating jsp page
I seen to be very fast and erronous today, try this:
public ActionForwa
: Thursday, September 29, 2005 2:56 PM
To: user@struts.apache.org
Subject: prepopulating jsp page
Hi,
I am trying to pre-populate my JSP page with the values returned from
the database when a user edits a client. I have just recently upgraded
to Struts download 1.2.4.
This is what I did before
List'
> Ämne: SV: prepopulating jsp page
>
>
>
> > -Ursprungligt meddelande-
> > Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Skickat: den 29 september 2005 11:38
> > Till: user@struts.apache.org
> > Ämne: RE: prepopulating jsp pa
> -Ursprungligt meddelande-
> Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Skickat: den 29 september 2005 11:38
> Till: user@struts.apache.org
> Ämne: RE: prepopulating jsp page
>
> Do this in your action:
>
>CreateClientForm update
]
Sent: 29 September 2005 10:34
To: 'Struts Users Mailing List'
Subject: SV: prepopulating jsp page
> -Ursprungligt meddelande-
> Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Skickat: den 29 september 2005 11:26
> Till: user@struts.apache.org
> Ämne: prepo
> -Ursprungligt meddelande-
> Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Skickat: den 29 september 2005 11:26
> Till: user@struts.apache.org
> Ämne: prepopulating jsp page
>
> Hi,
>
> I am trying to pre-populate my JSP page with the values returned
Hi,
Did you put the new form into session or into
whatever-the-scope-of-the-form-must-be ?
If not, the error may come from that
Regards,
Cedric
[EMAIL PROTECTED] wrote:
Hi,
I am trying to pre-populate my JSP page with the values returned from
the database when a user edits a client. I hav
Hi,
I am trying to pre-populate my JSP page with the values returned from
the database when a user edits a client. I have just recently upgraded
to Struts download 1.2.4.
This is what I did before which worked:
In my action class I created the form then populated it with the values
from t
16 matches
Mail list logo