aspose file tools*
The moose likes Struts and the fly likes BeanUtil.copyProperties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "BeanUtil.copyProperties" Watch "BeanUtil.copyProperties" New topic
Author

BeanUtil.copyProperties

PoojaC gupta
Greenhorn

Joined: Oct 04, 2005
Posts: 1
Hi,

Urgent help needed.

I have a Value Object(VO) say AddressVO containing an array of TelephoneVO in com.abc.test package.

I need to populate the AddressVO in com.xyx.test package from the co.abc.test.AddressVO.

I am not sure how to use BeanUtils.copyProperties to populate the telephoneVO[] in it.

VO structure in both the packages:

public class AddressVO{
private TelephoneVO[] phone;
//getter + setter methods
}


Has someone dealt with this kind of scenario. If yes, please help me on this.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: BeanUtil.copyProperties