On Thu, 2 Aug 2001, Hartmut Bernecker wrote:
> Hello,
>
> when a URL (myUrl.do) is invoced, the ActionServlet instantiates a
> myForm (according to the struts-config.xml), forwards control to a
> myAction object; the perform() method of myAction calls the reset()
> method of the myForm object and then forwards to a JSP page.
>
> Would some of you give me a piece of code that shows me how myForm can
> be prepopulated with some data before been displayed by the JSP page??
> IMHO that code should be in the perfom() method.
>
I would suggest using a separate action to prepopulate your form bean.
In a previous response (earlier today) I outlined the processing flow that
the Struts example app does, which illustrates exactly this design
pattern.
> TIA for ur help!
> Hartmut Bernecker
>
Craig