Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jan 2010
    Posts
    124

    Angry <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 at 12:55 PM.

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •