This is similar to what we do.

We don't use copyProperties, but toDvo and fromDvo.

Just re-read Ted's book and he was talking about using
the formatting stuff on the Dvo and not the PDvo.

I haven't tried this, but it seems more right for some
reason.  Maybe it is business logic?

Maybe having a DateHolder and having this on the DVO
(or DTO if you call it that) and any other holders,
makes more sense...

I think I will try this next...

sandeep
--- Dave Ladd <[EMAIL PROTECTED]> wrote:
> We are using DynaForms and rather than define the
> attributes within
> struts-config, our approach to this problem was to
> create a PVO
> (presentation view objects) class which is basically
> a mirror of the VO but
> with the attributes defined as Strings.
> 
> The PVO is then defined as a property of a FormBean
> within the
> struts-config.  Population between the VO and PVO is
> done via
> BeanUtils.copyProperties.
> 
> By doing this, the size of the struts-config is
> reduced (probably not a big
> deal) and we gain some flexibility in being able to
> do any needed formatting
> within the PVO.  In addition, we quite often use
> these PVOs when we are
> building lists that are not part of the form itself.
>  We can also "mix and
> match" our PVOs within a FormBean which has proven
> helpful in a couple of
> situations.
> 
> The biggest drawback (that we are aware of) is that
> we have to create
> another class for each VO but this isn't much a
> hassle given the IDEs that
> are available.
> 
> 
>
---------------------------------------------------------------------
> 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]

Reply via email to