struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <brenmcgu...@tariffenet.it>
Subject Re: BeanUtils copyProperties - copying vector
Date Fri, 04 Aug 2006 07:02:53 GMT
chamal desilva ha scritto:
> Now I need to copy properties from CustomerForm object
> to Customer object.
>
> My customers classes accounts vector contains Account
> objects. CustomerForm classes accounts vector contains
> AccountForms.
>
> So when BeanUtils copy accounts vector from
> CustomerForm to Customer class, will it also convert
> AccountForms to Accounts. If not is there a way that I
> can do that.
>   

No you can't, you have to copy each element of the vector.

Ciao
Antonio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message