[newbie] Prepopulating a form

2003-03-19 Thread Johan Wasserman
Hi, I need to populate a form from a StateBean (session) before displaying it. I cannot find anything to do it when using a FormBean (request) since the bean is initialised when loading the form and no methods are available to read the StateBean from the session (or so I think), any suggestions

Re: [newbie] Prepopulating a form

2003-03-19 Thread Gemes Tibor
Johan Wasserman írta: Hi, I need to populate a form from a StateBean (session) before displaying it. I cannot find anything to do it when using a FormBean (request) since the bean is initialised when loading the form and no methods are available to read the StateBean from the session (or so I

RE: [newbie] Prepopulating a form

2003-03-19 Thread Mohan Radhakrishnan
Or make the base action extend PopulateAction after the scaffold example. -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:01 PM To: Struts Users Mailing List Subject: Re: [newbie] Prepopulating a form Johan Wasserman írta: Hi, I need

Re: [newbie] Prepopulating a form

2003-03-19 Thread Marco Maier
Hi Johan, try this... DynaActionForm yourForm = (DynaActionForm) this.createDynaActionFormFromFormBeanConfig(yourFormName, mapping); // prepopulate the form httpSession.setAttribute(yourFormName, yourForm); protected DynaActionForm createDynaActionFormFromFormBeanConfig(String