title: Struts 2.0 Download pop up not appearing in browser
body: <p>I am application is based on struts and in one of the module I am generating reports in pdf and excel format .The reports gets generated in system directory  but download pop up dosen't appear on browser .</p>
  
  <p>This is my .xml mapping of action </p>
  
  <pre><code>&lt;action name="report" class="reportAction" method="generateReport"&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=${filename}&lt;/param&gt;
              &lt;param name="bufferSize"&gt;1024&lt;/param&gt;
          &lt;/result&gt;
          &lt;result name="error"&gt;
          &lt;/result&gt;
      &lt;/action&gt;
  </code></pre>
  
  <p>this is my cal to action from jsp :-</p>
  
  <pre><code>function fetchReport()
  {
  //alert("I am here");
          $.ajax({
                 type : "POST",
                 url  : "report.action",
                 data : jQuery("#parameterGrid").serialize(),
                 async : false,
              success : function(dataJSP) {
                  //alert("Hi");
                  //alert(dataJSP);
                  /* jQuery("#showReportDIV").load("Please wait...").html(
                          dataJSP); */
  
                  return true; 
              }
          });
      }
  </code></pre>
  
  <p>Now I have changed my button on whose click event I generate the report to :-</p>
  
  <pre><code>&lt;sj:submit button="true" 
                      theme="simple" onclick= "fetchReport();" key="Generate Report" /&gt;
  </code></pre>
  
  <p>now the pop up appears but a flat file is download ,I have to browse to open it either in excel or pdf </p>