title: Struts 2 tag lib for number textfield
body: <p>I have this code in a JSP page using Struts 2 Framework to get a number.</p>
  
  <pre><code>&lt;s:textfield type="number" name="year"&gt;
  </code></pre>
  
  <p>How can I specify the min, max value and step of this field like in HTML5?</p>
  
  <pre><code>&lt;input type="number" name="year" min="2010" max="2018" step="2"/&gt;
  </code></pre>