aspose file tools*
The moose likes Spring and the fly likes BindingResult is not showing any errors during form Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "BindingResult is not showing any errors during form Validation" Watch "BindingResult is not showing any errors during form Validation" New topic
Author

BindingResult is not showing any errors during form Validation

Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 86
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

Joined: Mar 07, 2010
Posts: 1680
    
    7

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.


[How To Ask Questions][Read before you PM me]
 
 
subject: BindingResult is not showing any errors during form Validation