You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2003/07/31 23:08:52 UTC
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?
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Converting Data Types On the Business Bean Side
Posted by "Craig R. McClanahan" <cr...@apache.org>.
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