HI,

Thanks a lot for the reference.
But we where also looking for something which can perform the necessary
type conversion like string to date, string to double 

KP

-----Original Message-----
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 1:55 PM
To: Struts Users Mailing List
Subject: Re: How to convert Strings in ActionForm to date, double etc.
in VO..

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]


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

Reply via email to