On 2/28/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> R.Vijayaraghavan ha scritto:
> > Hello,
> >
> > I usually have set and get methods for all properties in my Model class.
> > After submitting a form, I pull out all the property values (form fields) in
> > the Action class from the ActionForm object, set the values of all
> > properties in the model from the action class and then call a particular
> > method in the model class for final submission to the database.
> >
> > I wanted to know thether the above mentioned method is better or is it
> > better to pass the form reference itself to the Model class which then sets
> > the values.
> >
> > In situation 2, I do not have to take care of the various String references
> > that I create. I simply will pass the ActionForm object to the Model class.

Or, you can simply set your business object as a property of an
ActionForm, and use session-scoped ActionForm to retain value of
business object in between requests.

Michael.

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

Reply via email to