struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Hill <andrew.david.h...@gridnode.com>
Subject Re: How to convert Strings in ActionForm to date, double etc. in VO..
Date Tue, 01 Mar 2005 06:16:28 GMT
Whats wrong with the conversion support in BeanUtils?

Prasad, Kamakshya wrote:
> 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:andrew.david.hill@gridnode.com] 
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


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


Mime
View raw message