user  

How to stop ArrayIndexOutOfBoundsException from being thrown when using DynaActionForm

venkat reddy
Mon, 05 May 2008 21:41:27 -0700

I'm using struts 1.2.7

struts-config.xml
===================

<form-bean name="multipleFieldForm"
type="org.apache.struts.action.DynaActionForm">
            <form-property name="choices" type="java.lang.String[]"
size="4"/>
</form-bean>


When the number of choices in the jsp page exceed the size it's throwing
ArrayIndexOutOfBoundsException. Please explain in detail how to stop it from
being thrown.
  • How to stop ArrayIndexOutOfBoundsException from being thrown when using DynaActionForm venkat reddy