title: jsp <html:file> property
body: <p>I need to pass the value from jsp file  property in a loop. Here is the code</p>
  
  <pre><code>&lt;/tr&gt;
                      &lt;%
  
                      for (int i = 0; i &lt; value.size(); i++) {
                          &lt;html:form action="save" method="post" styleId="update" enctype="multipart/form-data"&gt;
                          &lt;input type=hidden id="secfeaturetype" name="secfeaturetype" value="" /&gt;
  
                          &lt;html:file property="testfile" styleId="testfile"/&gt;
                          &lt;input type="button" value="Update" onclick='javascript:check_updatefields()' /&gt;
                          &lt;/html:form&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
  </code></pre>
  
  <p>I am trying to do some validation in javascript and it is reading only the first file properly and not the rest. Any ideas ?</p>
  
  <pre><code>function check_updatefields() {
      var file = jQuery('#testfile').val();
      alert(testfile);
   }
  </code></pre>
  
  <p>Am I missing something here ? Thanks.</p>