hibernate - Spring validator - The request sent by the client was syntactically incorrect -
my friend helped me set first spring/hibernate project , trying implement custom validator. have registrationform model uses anotations validate. however, need implement password validator - check if password , confirmpassword equal. problem: when post, if passwords match, data saved. if dont match, @ validators following line, error title. errors.rejectvalue("confirmpassword", "valid.passwordconfdiff"); the request sent client syntactically incorrect. tutorial followed: http://examples.javacodegeeks.com/enterprise-java/spring/mvc/spring-mvc-password-example/ this have: controller: @controller @requestmapping("/") //@sessionattributes(value = {"registerform"}) @componentscan("ba.codecentric.movienight") public class frontcontroller { @autowired private userservice userservice; @autowired @qualifier("passwordvalidator") private passwordvalidator validator; @initbinder("passwor