• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

BindingResult is not showing any errors during form Validation

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?
Posts: 1682
Android Mac OS X IntelliJ IDE Spring Linux
  • 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.
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic