Wendy,

True enough, the original question though revolved around prepopulating the
form from the DB before getting to the view of the submitting page so that
initial page would have data pre-populated. :)

Al


-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 05, 2004 12:05 PM
To: Struts Users Mailing List
Subject: Re: input form

From: "Freddy Villalba A." <[EMAIL PROTECTED]>
> I have a similar question: when you say create the action form and put it
> into request scope... I suppose you refer to the same ActionForm that will
> be used when, say, saving that prepopulated form again (the changes you've
> made).

Struts will instantiate the ActionForm and place it in the correct scope
according to your struts-config.xml setup.  All you have to do is use the
'form' object that's passed into your 'execute' (or similar) method, setting
values as necessary.  You have a reference to the form, you don't have to
worry about where it lives, or put it anywhere.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to