I want to know how to validate a list of nested objects in my form with Spring Validator (not annotation) in Spring MVC application.
class MyForm() {
String myName;
List<TypeA> listObjects;
}
class TypeA() {
String number;
String value;
}
How can I create a MyFormValidator to validate the listObjects and add error message for number and value of TypeA.