
ir i have the confusion in spring form validation.using hibernate.my bean configuration only wrong . i dont know how to map my validator to my controller it is shows errpr like
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaannila.validator.UserValidator#0' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'validator' of bean class [com.vaannila.validator.UserValidator]: Bean property 'validator' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
ple send me one sample program using spring hibernate validator ...beans file also

Please visit the following link: