title: Spring, Form tag based Datepicker in Jquery?
body: <p>Actually in my Spring application i'm using spring based <code>form</code> tag in my jsp code.</p>
  
  <p>And add the functionality for this <code>&lt;form:input&gt;</code>,provide DatePicker using Jquery.</p>
  
  <p>And here is my Jsp code..</p>
  
  <pre><code>&lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%&gt;
  &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  
  &lt;link rel="stylesheet" href="resources/css/jquery-ui.css" type="text/css"&gt;
  &lt;link rel="stylesheet" href="resources/css/custom.css" type="text/css"&gt;
  &lt;script type="text/javascript" src="resources/jquery/jquery-ui.min.js"&gt;&lt;/script&gt;
      &lt;form:form action="form/form1"
          modelAttribute="form1"&gt;
                 &lt;label class="control_label_c"&gt;From : &lt;/label&gt;
            &lt;div class="controls_c"&gt;
                &lt;form:input type="text" path="fromDate" class="date-picker" /&gt;
          &lt;/div&gt;
      &lt;/form:form&gt;
  &lt;script&gt;
  $(function() {
      $('.date-picker').datepicker( {
          changeMonth: true,
          changeYear: true,
          showButtonPanel: true,
          dateFormat: 'MM yy',
          onClose: function(dateText, inst) { 
              var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
              var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
              $(this).datepicker('setDate', new Date(year, month, 1));
          }
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>But date picker not working (not visible)...</p>
  
  <p>Is there any problem in this spring based form tag? or</p>
  
  <p>Is there anything wrong in my code?</p>