Rest assured that the BeanUtils package does handle indexed properties.
The user-mailing list has handled this issue recently. Take a walk 
through the user-list history or ask the user-list.

Arron.

Fredrik Östling wrote:

>I have multiple select tag in my JSP as follows:
><html:select multiple="true" size="5"
>property="testStrings">
>  <html:options collection="appellationTypes"
>property="name" labelProperty="name"/>
></html:select>
>
>In my form bean I have these getters and setters:
>       public void setTestStrings( String[] in )
>       {
>               System.out.println("setTestStrings( String[] in )");
>               testStrings = in;
>       }
>
>       public void setTestStrings( int index, String in )
>       {
>               System.out.println("setTestStrings( int index,
>String in )");
>               testStrings[index] = in;
>       }
>
>       public String[] getTestStrings()
>       {
>               System.out.println("getTestStrings()");
>               return testStrings;
>       }
>
>       public String getTestStrings( int index )
>       {
>               System.out.println("getTestStrings( int index )");
>               return testStrings[index];
>       }
>
>The problem is that if I select one or more fields in
>the multiple select box and post it I get this
>annoying Exception:
>javax.servlet.ServletException: BeanUtils.populate
>
>Struts should handle indexed properties, shouldnt it?
>What am I doing wrong?
>
>I dont know how to debug this either.
>
>/ Fredrik
>
>
>
>
>_____________________________________________________
>Hitta snörapporter... 
>från 500 olika skidorter i Europa
>på http://se.snow.yahoo.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