springmvc jsr303 validator co-exist with spring WebDataBinder validator in one action
Since springmvc 3.x now supports jsr303 and old spring style validator, i want to mix them in my sample apps. But there is only one method enabled for a specified controller, is that the limit of spring framework or JSR standard? Here is my sample code. User.java, stands for the domain model, uses JSR303 for validation. public class User{ @Size(max = 16, message = "user loginId max-length is 16") private String loginId; //omit getter and setter } UserValidator.java, implements the org.springframework.validation.Validator interface to support user validation. public class UserValidator