From: "Patrick Beagan" <[EMAIL PROTECTED]> > Any suggestions to re-use these value objects? IE: It seems that I must > define an ActionForm for my struts layer, and have a plain value object > in my app server layer. I'd rather not duplicate.
While it might seem like a good idea to use the database VO's instead of making an ActionForm, it's not. You might have to find that out for yourself, however. ;) The first thing that will happen is that you have an integer property in your VO, and someone puts a character into the field associated with it on the HTML form. Now you get an error when populating the VO, and you can't re-display the "bad" input. ActionForms should be mostly String, maybe a Boolean for a checkbox. VO's should have whatever data types make sense for the database. Dynamic forms can help, that's what I use. Or there are plenty of code-generation tools that will do it for you. Either way you should not have to type in a bunch of get/set methods. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]