Announcement Announcement Module
Collapse
No announcement yet.
<form:errors path=.....> and BeanPropertyBindingResult realted question. Urgent Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <form:errors path=.....> and BeanPropertyBindingResult realted question. Urgent

    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.
    Code:
    model.addAttribute(BindingResult.MODEL_KEY_PREFIX + "nameAndAddressCommandRegistration", result);
    where 'result' is an instance of BeanPropertyBindingResult class.

    I will really appreciate, if someone can answer this?
    Thanks
    sri
    Last edited by srikondoji; Apr 13th, 2012, 12:55 PM.

  • #2
    Hello

    Consider read these
    6.2 Validation using Spring's Validator interface
    6.7.4.2 Configuring a Validator for use by Spring MVC

    Comment

    Working...
    X