Re: prepopulating jsp page

2005-09-29 Thread Laurie Harper
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

SV: prepopulating jsp page

2005-09-29 Thread Ekberg Mats KONSULT
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

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
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

SV: prepopulating jsp page

2005-09-29 Thread Ekberg Mats KONSULT
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

Re: prepopulating jsp page

2005-09-29 Thread Cedric Levieux
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

SV: prepopulating jsp page

2005-09-29 Thread Ekberg Mats KONSULT
> -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

SV: prepopulating jsp page

2005-09-29 Thread Ekberg Mats KONSULT
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

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
: 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

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
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

RE: prepopulating jsp page

2005-09-29 Thread Vijaya S
: 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

SV: prepopulating jsp page

2005-09-29 Thread Ekberg Mats KONSULT
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

SV: prepopulating jsp page

2005-09-29 Thread Ekberg Mats KONSULT
> -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

RE: prepopulating jsp page

2005-09-29 Thread faisal.shoukat
] 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

SV: prepopulating jsp page

2005-09-29 Thread Ekberg Mats KONSULT
> -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

Re: prepopulating jsp page

2005-09-29 Thread Cedric Levieux
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

prepopulating jsp page

2005-09-29 Thread faisal.shoukat
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