Michael Jouravlev wrote the following on 7/5/2005 1:41 PM:
You want to have your TOs populated by Struts? Why would not you just make FatherTO as a member of ActionForm, and use it as nested property? If you want to retain TO values between requests, set form scope to "session".
Yup. This is what I do. Which ends up making you wonder why do you really need an ActionForm at all:) Just have your TO(s)/ValueObjec(s) as your ActionForm property(ies).
The only drawback, of course, to the above is validation. That can get a bit messy if you want to use the struts validation stuff (I'm not even sure if it's possible?)... but since I don't use it, I don't see much problem using your Value Objects directly as ActionForm properties.
(If I need validation I call my own validation method which validate the nested VOs.)
-- Rick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]