I have a form whose fields are from an dynamic customer array. I display Customer name and giving i/p field for Amount to enter. The JSP might contain 2-3 text fields called amt against different customers (I am identifying it with IDs) My form bean is something like this, public class AddressForm extends ValidatorForm //ActionForm { ... private String[] amt; ... public String[] getAmt() { return this.amt; } public void setAmt(String[] amt) { this.amt = amt; } ... } I am using Validator, validation.xml is something like this <field property="amt" depends="required"> <arg0 key="amt.displayname"/> </field>
-------------------------------------------------------------------------------- 1) When validation fails and it comes back to jsp form -BUT the bydefault values of Amount is something like : [Ljava.lang.String;@f2da21 I understand this is because i have declared it as an array. But how to get rid of this. 2)I face a problem when i also want to validate as float. As i/p taken is amt[1], amt[2] ... it never gets validated as float where as i want to validate individual i/p text field as float. How can i achieve it ? Pls guide me Thanks and regards Manisha --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'