You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2003/08/01 01:39:54 UTC

Re: Converting Data Types On the Business Bean Side


On Thu, 31 Jul 2003, Caroline Jen wrote:

> Date: Thu, 31 Jul 2003 14:08:52 -0700 (PDT)
> From: Caroline Jen <ji...@yahoo.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: struts-user@jakarta.apache.org
> Subject: Converting Data Types On the Business Bean Side
>
> Does the Struts 1.1 BeanUtils class supports
> transferring data between String and native types on
> the business bean side?
>

Yes.  You'll need to ensure that commons-beanutils.jar is available in the
classpath for your business logic classes, and you can then use the
BeanUtils.copyProperties() method to perform copying with conversion, or
PropertyUtils.copyProperties() to perform copying without conversion.

Craig

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