title: Download any content type using Struts2
body: <pre><code>&lt;action name="downloadFiles" method="downloadFiles" class="org.filemanager.action.SystemAction"&gt;
      &lt;result name="success" type="stream"&gt;
          &lt;param name="contentType"&gt;application/octet-stream&lt;/param&gt;
          &lt;param name="inputName"&gt;fileInputStream&lt;/param&gt;
          &lt;param name="contentDisposition"&gt;attachment;filename="${folderOrFileName}"&lt;/param&gt;
          &lt;param name="bufferSize"&gt;200000&lt;/param&gt;
      &lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>As code shown above:
  How can I set the content type, so that any content type can be downloaded?</p>