There is a fair bit of support in commons-beanutils for this sort of thing.

http://jakarta.apache.org/commons/beanutils/api/

Take a look at BeanUtils.copyProperties() to start with at that sounds closest to your needs.

(btw: Struts also makes use of BeanUtils for form population so the jar file will already be in your app).

Prasad, Kamakshya wrote:
Hi All,



In our application we are keeping all the values as string in actionform
but in value object we are using specific data type. Now we are looking
for an option which can populate the VO from ActionForm without the
developer having to populate for each of the fields. It should also
perform necessary type conversion also like from string to date, string
to double etc.



Regards,

KP




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to