aspose file tools
The moose likes Spring and the fly likes Not able to Validate form using JSR-303 validation implementation in Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Not able to Validate form using JSR-303 validation implementation in Spring MVC" Watch "Not able to Validate form using JSR-303 validation implementation in Spring MVC" New topic
Author

Not able to Validate form using JSR-303 validation implementation in Spring MVC

jas preet
Ranch Hand

Joined: Mar 31, 2010
Posts: 76

I not able to validate simple form using JSR-303 implementation. I am not getting any exception, i think the problem is the framework is not invoking the @Valid annotation in the controller. I have been searching a lot.
I need to validate my login form. I have added the required jars in the classpath. Could not figure out the prblem.

Below is my servlet-xml file.


Login class



Controller



login.jsp



When i do not enter anything for email the validation is not trigerred.


Thanks Jaspreet ----- Nothing is permanent
jas preet
Ranch Hand

Joined: Mar 31, 2010
Posts: 76

Can anyone help me on this ?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Not able to Validate form using JSR-303 validation implementation in Spring MVC
 
Similar Threads
Problem with getSuccessView
Problem with validation example
Validation is not working in Annotaion based controller
IllegalStateException:Neither BindingResult nor plain target object for bean name available
Simple navigation rule