Hi,
I am working on a Spring mvc portlet project and i am not using annotation validation logic. I guess this question also is applicable for Spring MVC projects.
I am performing a manual validation using ValidationUtils.invokeValidator(...) code.
I have access to BindingResult and BeanPropertyBindingResult after validation is performed. How and what should i add to my Model object so that my view layer displays the error messages?
I tried adding this to model and it didn't work.
where 'result' is an instance of BeanPropertyBindingResult class.Code:model.addAttribute(BindingResult.MODEL_KEY_PREFIX + "nameAndAddressCommandRegistration", result);
I will really appreciate, if someone can answer this?
Thanks
sri![]()


Reply With Quote
