Mick-

You can use dynaforms and declare them in your struts-config.xml and
as mentioned use BeanUtils.copyProperties to move data between them.

Also, there has been mentioned on this list a library/tool which groks
your DTOs and generates formBeans, but I can't recall now what it's
called.

-ed

On 8/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Also, remember that your ActionForm properties all should be strings,
> while your DTOs should be typed.  You can use BeanUtils.copyProperties to
> do the conversion.
> 
> Say, does anyone have a dynamic AOP-style ActionFormProxy class that you
> could use to dynamically decorate a DTO?  it would make ints, longs, etc.
> on the DTO look like Strings at the ActionForm layer, but you could get
> the DTO itself to pass to the business layer.  Dates are a challenge,
> though, because of the variety of formats.
> 
> -- Bill
> 
> > Instead -- no. But you can use them as nested properties.
> >
> > On 8/8/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >> I have many DTO's and do not want to duplicate code my creating
> >> ActionFOrms that are identical to my DTO's. Can I used the DTO's instead
> >> of ActionForms?
> >
> 
> 
> ---------------------------------------------------------------------
> 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