KP,

I have a plugin which does this, though it only works with form beans
you define with it.
https://formdef.dev.java.net

Hubert


On Tue, 1 Mar 2005 13:44:50 +0900, Prasad, Kamakshya
<[EMAIL PROTECTED]> 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:[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]
> 
>

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

Reply via email to