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

BindingResult is not showing any errors during form Validation

 
Raihan Jamal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using annotation based validation for one of my forms and I am not able to show any errors using the **form:errors tag** I used in JSP file. When I try to debug it, I found out that the BindingResult does not show any errors as well but I am leaving the textbox empty to test the validation. Any pointers are greatly appreciated why I am not able to validate it.

Below is my Controller Class




Below is my model class-




Below is my requestform.jsp file




Below is my context.xml file



Can anyone tell me what wrong I am doing here?
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At first glance your names do not look consistent. You are naming your model command when you render the view but when you show the response you are calling it berequest.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic