title: Spring Validation Between Two Date Fields?
body: <p>In my Spring Application, i'm Using <code>Hibernate Validator</code> for Validation Purpose.</p>
  
  <p>When i'm doing simple Validation like <code>@NotEmpty</code>, <code>@Email</code> .. i'm easily working </p>
  
  <p>But When coming to Date field, giving Problem...</p>
  
  <p>Problem is in my Jsp page i'm getting values type as String then i'm convert String to Date..</p>
  
  <p>Hear is my Example...</p>
  
  <pre><code>@NotEmpty(message = "Write Some Description")
  private String description;
  
  private String fromDateMonth;
  
  private String fromDateYear;
  
  private String toDateMonth;
  
  private String toDateYear;
  </code></pre>
  
  <p>i'm converting this <code>fromDateMonth</code> and <code>fromDateYear</code> into Date in this my Controller class.</p>
  
  <p>So is their any Possibility to add Validator Annotation in Controller class?</p>
  
  <p>Other wise what should i'm do hear? give me suggestions...</p>