Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
jas preet
Ranch Hand
Posts: 78
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
jas preet
Ranch Hand
Posts: 78
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me on this ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic