I\'ve used validators with backing objects and annotations in Spring MVC (@Validate). It worked well.
Now I\'m trying to understand exactly how it works with the Sp
Why don't you use the implementation that spring offers org.springframework.validation.MapBindingResult
?
You can do:
Map<String, String> map = new HashMap<String, String>();
MapBindingResult errors = new MapBindingResult(map, Shape.class.getName());
ShapeValidator sv = new ShapeValidator();
Shape shape = new Shape();
sv.validate(shape, errors);
System.out.println(errors);
This will print out all that is in the error messages.
Good luck