title: Spring mvc check if was BindingResult in javascript response
body: <p>Is there a clear way to check if ajax success response controller returned view with validation errors?</p>
  <p>controler:</p>
  <pre><code>if(result.hasErrors()) {
          return &quot;place/add&quot;;
      }
  </code></pre>
  <p>javascript:</p>
  <pre><code>$.ajax({
          url : &quot;&lt;spring:url value=&quot;/place/add&quot;/&gt;&quot;,
          type : 'POST',
          data : $(&quot;#newPlaceForm&quot;).serialize(),
          success : function(response) {
  </code></pre>
  <p>How do I check if the response has no validation messages?</p>