On Wed, 10 Jul 2002, Rajesh Kalluri wrote:

> Date: Wed, 10 Jul 2002 14:31:10 -0400
> From: Rajesh Kalluri <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Bean Utils Problems transferring Indexed Properties.....String
>     []-->Integer []
>
>
> Hi
>
> I am trying to commons-beanutils to transfer data from  a String [] in a
> form-bean
> to a data bean with a Integer[].
>
> My String[] has three elements when it comes from the ActionForm.
>
> BeanUtils.populate(bean,map); copys only the first element of the String[]
> into the integer array.
>
> I searched the archives and the nightly build of commons is supposed to
> solve the problem, i tried and it did not help.
>
> Can any one help me with this issue, i am stuck.
>

  Integer integerArray[] =
    (Integer[]) ConvertUtils.convert(stringArray, Integer.class);

> regards
> Rajesh

Craig


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

Reply via email to