Announcement Announcement Module
Collapse
No announcement yet.
Generic way of determing if there were any bind errors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generic way of determing if there were any bind errors

    I have a requirement to put in some generic way for our pages to detect if there have been any errors bound to the page's command object so that some additional processing can occur. The problem is, the command object name is not universal throughout the application.

    Any thoughts on how to accomplish this? We are using JSPs and the Spring Tags (and I hope it's obvious, the Spring MVC).

    Is the best bet to just standardize on a name for the command object?

    Thanks,
    Patrick

  • #2
    Aren't errors exposed in the map, i.e.
    Code:
      <c&#58;if test="$&#123;not empty errors&#125;"></c&#58;if>
    or

    Code:
      <c&#58;if test="$&#123;not empty errors.allErrors&#125;"></c&#58;if>
    I am pretty sure (but I can't check at the moment) that will work.

    Comment

    Working...
    X