Hi All., I am doing form validation using
struts validator frame work.How can I do validation for my form which in turns contains an object of another class.Here I am showing mycode in short.
public class Student{
String name; //its getters & setters
}
myform.java
---------------
public class MyClass extends ValidatorForm{
Student student //its getters & setters
}
myjsp.jsp
----------
<html:text property="student.name">
here student is the object in my form(with getters and setters) and name is the property of student.
I have given every thing fine.But I dont know how to specify the field name in <formset>.I have given like this but its not working...
<formset>
<form .....>
<field property="student.name">
........
</field>
</form>
</formset>
please help mee....I have given validat=true,input......each & everything
Thanks in advance