commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: PropertyUtils.copyProperties
Date Wed, 08 May 2002 23:48:30 GMT


On Wed, 8 May 2002, Roland Chan wrote:

> Date: Wed, 8 May 2002 13:51:21 -0400
> From: Roland Chan <rchan@casebank.com>
> Reply-To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> To: commons-dev@jakarta.apache.org
> Subject: PropertyUtils.copyProperties
>
> Can anyone show a good example of how to use the commons
> PropertyUtils.copyProperties when the types of your Origin (Struts
> Action Form) and Destination (Value Object) are not the same?  Is there
> a prescribed way to do this?  I've been searching and have yet to find
> anything.  It doesn't help that mail-archive is down either.
>

You are correct in noting that copyProperties() doesn't do any
conversions, and there isn't any standard mechanism that does both
converting and copying.  Perhaps we ought to add a convertProperties()
method that is just like copyProperties but uses ConvertUtils on each
property as needed.

> Thanks,
> Roll
>
>

Craig



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message