title: Using Struts html tag, render attribute not present in TLD
body: <p>I'm trying to validate Struts 1.3 - made forms with <a href="http://jqueryvalidation.org/" rel="nofollow noreferrer">jQuery Validator</a> plugin. Even though Struts 1.x has reached it's end-of-life, I'm not allowed to switch to another MVC framework.</p>
  
  <p>jQuery validator uses attributes on <code>&lt;input&gt;</code> tag to determine which validation rules to apply. For example:</p>
  
  <pre><code>&lt;input type="text" minlenght="30" required /&gt;
  </code></pre>
  
  <p>will check if the textbox was filled in and it's contents length is at least of 30.</p>
  
  <p>I'm trying to achieve the same with <code>&lt;html:text&gt;</code>, which is supposed to render as an <code>&lt;input type="text"&gt;</code> element. But <code>minlength</code> and <code>required</code> are not defined in struts-html.tld as attributes, causing the JSP compiler to throw the following (translated from Spanish) exception:</p>
  
  <pre><code>org.apache.jasper.JasperException: /WEB-INF/path-to-my-jsp Attribute xxx invalid for tag xxx according to TLD
  </code></pre>
  
  <p>According to <a href="https://stackoverflow.com/questions/10758729/using-jquery-validation-plugin-with-a-form-written-in-struts">this question</a> it is possible, despite the fact that Struts is used to generate the form. But I couldn't make it work.</p>
  
  <p>Is there any way to force the JSP compiler to ignore those undefined attributes and make Struts render them "as-is"?</p>
  
  <p>Note: I've chosen jQuery Validator due to it's ease of use, but I'm open to suggestions on other methods to perform the same task. However, I still want to know if it's possible to make the JSP compiler to ignore an invalid / undefined attribute.</p>
  
  <p>P.S. Please excuse my english. I've tried my best.</p>