Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Spring
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: 78

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: 78

Can anyone help me on this ?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Not able to Validate form using JSR-303 validation implementation in Spring MVC
 
It's not a secret anymore!