RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > On 10/11/06, Ed Griebel <[EMAIL PROTECTED]> wrote: > > You should not instantiate manually your own formbean nor put it into > > the request scope, you must use the formbean passed into your action > > class via the ActionForm object. > Ok I think my

Re: html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
On 10/11/06, Ed Griebel <[EMAIL PROTECTED]> wrote: You should not instantiate manually your own formbean nor put it into the request scope, you must use the formbean passed into your action class via the ActionForm object. Ok I think my question isnt clear. I have two action classes PrepareA

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > The prepare action needs to prepopulate values into the form that is > displayed subsequently. How else can i do this?? Populating a form is different than instantiating one and putting it in to scope: Struts1 already instantiates and scopes forms.

Re: html form instantiating form bean

2006-10-11 Thread Ed Griebel
You should not instantiate manually your own formbean nor put it into the request scope, you must use the formbean passed into your action class via the ActionForm object. When you get the handle to the formbean you can either cast the formbean to it's real class or you can use BeanUtils.populate

Re: html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
On 10/11/06, Dave Newton <[EMAIL PROTECTED]> wrote: From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > the fooAction has formBeanName as its form bean defined in the struts > config. But Im not able to get any values into the fields in my form. Why are you doing this manually? If you have configu

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > the fooAction has formBeanName as its form bean defined in the struts > config. But Im not able to get any values into the fields in my form. Why are you doing this manually? If you have configured your actions properly the framework will do this bi