title: How to use angularjs with springmvc to get server side validation?
body: <p>My web application is built using spring mvc and currently I am validating it via jquery on frontend and spring-mvc on backend. The code for this is something like</p>
  
  <pre><code>&lt;form:input path="defaultDate" size="20" /&gt;
  &lt;form:errors path="defaultDate" /&gt;
  </code></pre>
  
  <p>for each element I have to place the form:errors control. Now I want to move to angularjs but not sure how to validate the backend code. I just want to use the simple html template instead of jsp code and templates and I can validate it easily via angularjs... something like</p>
  
  <pre><code>    &lt;input ng-model="defaultDate" type="text" name="defaultDate" id="defaultDate" required /&gt;
      &lt;label ng-show="userForm.defaulteDate.$invalid" class="error"&gt;Please enter val&lt;/label&gt;
  </code></pre>
  
  <p>but how to validate it on server side and place the error correctly?</p>