You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Julie CARDON <jc...@auchan.com> on 2003/06/19 17:30:31 UTC
javax.servlet.ServletException: BeanUtils.populate
Hi,
I use DynaForm whith indexed properties, and contrary to many messages on this list this doesn't work
<form-bean dynamic="true" name="ligneProduitForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="ligneReceptionDTO" type="LigneReceptionIhmDTO[]" size="10" />
</form-bean>
<logic:iterate name="lignesReceptionDTO" id="ligneReceptionDTO" type="com.auchan.protoj2ee.dto.LigneReceptionIhmDTO" >
<bean:define name="ligneReceptionDTO" property="produitDTO" id="produit" />
<TR>
<TD bgcolor="#E3EFFB" valign="center"><font class="txtnoir">
<html:text name="ligneReceptionDTO" property="quantiteRecue" indexed="true" size="3" maxlength="3" /></font>
</TD> ...
</TR>
</logic:iterate>
This is ok.
But if i remove the size attribute of <form-property > I have a
javax.servlet.ServletException: BeanUtils.populate caused by an java.lang.ArrayIndexOutOfBoundsException
could somebody explain me my error?
I used Tomcat 4.1.18, JDK 1.4.1_01-b01 and jakarta-struts-1.1-b2
Thanks