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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 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 ?
 
Consider Paul's rocket mass heater.
 
subject: Not able to Validate form using JSR-303 validation implementation in Spring MVC