Hi,
I am facing a problem with validator. I intent to use client side validation & I am unable to write the declarations in the validation.xml file for the following:
My form bean has an array as : private Spec[] specs = new Spec[10];
where Spec contains 2
String fields param and value. So on the
JSP, i see an array of textboxes for Param and Value. I want to check if value has been entered for atleast one param-value pair. How do i check this using validator ?
in my jsp, they are declared as:
<tr><td>Srno.</td><td>Parameter</td><td>Value</td></tr>
<% int i=0; %>
<logic:iterate name="productForm" id="specs" property="specs">
<tr>
<td><%=(++i)%></td>
<td><html:text name="specs" property="param" indexed="true" /></td>
<td><html:text name="specs" property="val" indexed="true" /></td>
</tr>
</logic:iterate>
any help is appreciated. thanks.