Results 1 to 2 of 2

Thread: Generic way of determing if there were any bind errors

  1. #1
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default 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. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    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.

Similar Threads

  1. Replies: 2
    Last Post: Sep 1st, 2005, 07:49 AM
  2. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  3. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  4. Replies: 0
    Last Post: Jan 6th, 2005, 08:19 AM
  5. Bind errors
    By pak in forum Web
    Replies: 5
    Last Post: Sep 29th, 2004, 04:56 PM

Posting Permissions

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