wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring MVC 3.1 Validation Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC 3.1 Validation Problem" Watch "Spring MVC 3.1 Validation Problem" New topic

Spring MVC 3.1 Validation Problem

S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

Hi all,

I am working with spring MVC 3.1 doing small project for getting experience on it . I have good knowledge on struts. I am getting Problem with validating the user data in Spring MVC.

Everything is working fine but the form data was not validated. I hope every thing is configured correctly but I was unable to find out the problem. Please check my code and advise me for getting validation .

Below I specify the code I am using in this process


And My Model that contains form data

And my Jsp Page

And my spring configuration File

S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

Hi Ranchers what's up
Bill Gorder

Joined: Mar 07, 2010
Posts: 1646

Do you have hibernate-validator on the classpath?

[How To Ask Questions][Read before you PM me]
S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

Yes I have all the jar file in my class path
subject: Spring MVC 3.1 Validation Problem
Similar Threads
Neither BindingResult nor plain target object for bean name 'loginForm
Error Spring + tiles 2.2
spring security 3.1 login not working.
Spring MVC: Getting resource not available for one Request Mapping while its working for the others.
Not able to Validate form using JSR-303 validation implementation in Spring MVC