title: The jsp code is not getting submitted to servlet
body: <p>The jsp page with jQuery is not getting submitted to Servlet. The servlet name is ChangePIN. This is a JSP page which validates for old pin and new pin length of 4 characters using jquery and submits it to servlet to process the pin numbers .Kindly help me with this.</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Change Password&lt;/title&gt;
  &lt;link rel="stylesheet" href="http://jquery.bassistance.de/validate/demo/site-demos.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="ChangePIN" id="myform"  method="post" &gt;
    &lt;table width="100%" height="100%"&gt;
  
              &lt;tr&gt;
                  &lt;td colspan="2"&gt;&lt;%@include file="atmAdmin.jsp"%&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr height="100%"&gt;
                  &lt;td colspan="2" align="center"&gt;
                      &lt;div style=""&gt;Enter old and new PIN&lt;/div&gt;
                      &lt;table style="font-family: verdana font-size : 38px" align="center"&gt;
  
              &lt;tr&gt;
              &lt;td&gt;    &lt;label for="field"&gt;Enter old password &lt;/label&gt; &lt;/td&gt;
              &lt;td&gt;    &lt;input type="text" class="left" id="oldPin" name="oldPin"&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
                          &lt;tr&gt;
                              &lt;br&gt;
                              &lt;td&gt;&lt;/td&gt;
                          &lt;/tr&gt;
  
                                                  &lt;td&gt;&lt;/td&gt;
  
  
              &lt;tr&gt;
              &lt;td&gt;    &lt;label for="field"&gt;Enter new password &lt;/label&gt; &lt;/td&gt;
              &lt;td&gt;    &lt;input type="text" class="left" id="newPin" name="newPin"&gt;&lt;/td&gt;
              &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;br&gt;
                              &lt;td&gt;&lt;/td&gt;
                              &lt;td align="center"&gt;&lt;input type="submit" value="submit"&gt;
                          &lt;/tr&gt;
              &lt;/table&gt;
  
              &lt;tr width="22px" valign="bottom"&gt;
                  &lt;td colspan="2"&gt;&lt;%@include file="atmFoot.jsp"%&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;/table&gt;
  &lt;/form&gt;
  &lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://jquery.bassistance.de/validate/jquery.validate.js"&gt;&lt;/script&gt;
  &lt;script src="http://jquery.bassistance.de/validate/additional-methods.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  // just for the demos, avoids form submit
  jQuery.validator.setDefaults({
  debug: true,
  success: "valid"
  });
  $( "#myform" ).validate({
  rules: {
  oldPin: {
  required: true,
  maxlength: 4
  },
  newPin: {
      required: true,
      maxlength: 4
      }
  
  }
  });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have checked the web.xml also.</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;description&gt;&lt;/description&gt;
      &lt;display-name&gt;ChangePIN&lt;/display-name&gt;
      &lt;servlet-name&gt;ChangePIN&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.wipro.controller.ChangePIN&lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;ChangePIN&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/jsp/changePin1&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  </code></pre>