BeanUtils.populate() has some special logic for dealing with request
parameters on an HTTP request, so it does funny things with arrays in the
origin bean.  Try BeanUtils.copyProperties() intead (Struts 1.1-b2 or
later, or go get the current version of commons-beanutils if you're using
Struts 1.0).

Craig

On Fri, 4 Oct 2002, Sriram Hariharan wrote:

> Date: Fri, 04 Oct 2002 13:40:03 +0530
> From: Sriram Hariharan <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Problem with Populate utility
>
> I've a form and a corresponding value object (vo). Things work fine when I
> populate the form with value object (vo).....
>
> BeanUtils.populate(form, BeanUtils.describe(vo));
>
> But it doesnt work the other way around....
>
> BeanUtils.populate(vo, BeanUtils.describe(form));
>
> and throws an exception- java.lang.IllegalArgumentException: argument type
> mismatch.
>
> Any thoughts?
>
> Thanks, SRIRAM...
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to