title: Spring form:input for number
body: <p>I am using Spring's form:input as below :  </p>
  
  <pre><code>&lt;form:input type="number" .....&gt;
  </code></pre>
  
  <p>in my jsp but when I check the html that is rendered on the browser it shows like :</p>
  
  <pre><code>type="number" type="text"
  </code></pre>
  
  <p>i.e., two <code>type</code> attributes are generated in the html.  </p>
  
  <p>On the other hand, if I check using <em>inspect element option</em> in the browser, it shows correct - only <code>type="number"</code> as expected.<br>
  <strong>Edit</strong>- My Question: Why am I getting two type attributes in generated html (<code>type="number" type="text"</code>) ? How to get it resolved?</p>