Alan, A good tool for this is the org.apache.commons.beanutils.BeanUtils.copyProperties() method.
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/BeanUtils.html --- "Weissman, Alan" <[EMAIL PROTECTED]> wrote: > > Ok so I'm a little new to Struts but not J2EE and > I've been noticing that my > Value Objects that come out of EJB's in my data > layer are the exact same > objects as the ActionForms that are used by > Struts....and I'm sure I'm not > the first to notice this. > > So here's my question: How can I make one class > that can serve as both an > ActionForm and a ValueObject? > > The problems with solutions that I've brainstormed > are this: > > 1) I can't make my Value Objects extend ActionForm > for obvious reasons. > 2) I would rather not use an interface to get around > this issue because then > I have two classes to maintain again. > > Thanks for any advice! > > Alan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

