struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Radhakrishnan <Moh...@hclcomnet.co.in>
Subject RE: [newbie] Prepopulating a form
Date Wed, 19 Mar 2003 11:32:52 GMT
Or make the base action extend PopulateAction after the scaffold example.

-----Original Message-----
From: Gemes Tibor [mailto:tib@i-trade.hu]
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 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 will be welcome.
>  
>
Create an action which loads the data into your actionform, and  
reference this action instead of the
jsp which displays the form.

Hth,

Tib




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message