title: Struts2 Multiple File Upload with Map
body: <p>I am doing Multiple file upload with Struts2. It was working fine I map with java static action properties. But I am using Map to collect all the files. I am getting only the file object. I am not getting the fileName and content type.  </p>
  
  <pre>
  <code>
  public class TableListAction extends ActionSupport 
  {
      private Map raja;
      public Map getRaja() 
       {
      return raja;
       }
      public void setRaja(Map raja) 
       {
      this.raja = raja;
       }
       public String upload() throws Exception 
       {
          System.out.println(raja);
          return SUCCESS;
      }
  
  } 
  </code>
  </pre>
  
  <p>My Jsp like this</p>
  
  <pre>
  <code>
  &lt;s:form enctype="multipart/form-data" method="post" action="upload">
  &lt;s:file name="raja['column']"&gt;&lt;/s:file&gt;
  &lt;s:file name="raja['column']"&gt;&lt;/s:file&gt;
  &lt;s:file name="raja['column']"&gt;&lt;/s:file&gt;
  &lt;s:file name="raja['column']"&gt;&lt;/s:file&gt;
  &lt;s:submit/&gt;
  </code>
  </pre>
  
  <p>During uploading I am getting the file object array in that <code>raja</code> Map but I am not getting the fileName and contenttype.</p>
  
  <p>Thanks in Advance</p>
  
  <p>regards
  Shreeram A</p>