Spring / Spring MVC Interview questions
Use of BindingResult interface in Spring MVC.
Use a BindingResult object as an argument to the validate method of a Validator inside a Controller and the BindingResult object will hold the validation errors.
validator.validate(modelObject, bindingResult); if (bindingResult.hasErrors()) { // Handle error }
More Related questions...