Hi
I have a form property in a DynaValidatorActionForm as follows:
However, when I use the following code in my jsp page:
It will only iterate through it once. I think that as I have set the size to 5, then there should be 5 empty strings in the array??
Is this the right way of doing it or am I missing a trick here?
I have a form property in a DynaValidatorActionForm as follows:
Code:
<form-property name="AttName" type="java.lang.String[]" size="5"/>
Code:
<logic:iterate id="element" name="MyForm" property="AttName" indexId="counter">
<tr>
<td class="firstCol"><bean:message key='my.message'/>:</td>
<td class="lastCol">
<html:select property='<%="AttName[" + counter + "]" %>'>
<logic:notEmpty name="MyForm" property="My_refData">
<html:options property="My_refData" ></html:options>
</logic:notEmpty>
</html:select>
</td>
</tr>
</logic:iterate>
Is this the right way of doing it or am I missing a trick here?