commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Moore" <tmo...@blackboard.com>
Subject RE: PropertyUtils.copyProperties
Date Thu, 09 May 2002 15:13:53 GMT
+1 ;-) I had been planning on writing my own class to do just that!

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-----
> From: Craig R. McClanahan [mailto:craigmcc@apache.org] 
> Sent: Wednesday, May 08, 2002 7:49 PM
> To: Jakarta Commons Developers List
> Subject: Re: PropertyUtils.copyProperties
> 
> 
> 
> 
> 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