title: Downloading instead of executing
body: <p>We have legacy IBM registers which use a very old browser called "ICE".  It has a receipt printer attached and running.</p>
  
  <p>We have new Windows XP registers which have Internet Explorer 8.  It has a receipt printer attached and running.jsp - d</p>
  
  <p>I have a Windows XP machine which has Internet Explorer 8.  It has a network printer available and running.</p>
  
  <hr>
  
  <p>We have a HTML page with some javascript</p>
  
  <pre><code>document.form1.target = 'frameProcess';
  document.form1.action = (jspFolder + 'TransferPrintOutput.jsp');
  document.form1.submit();
  </code></pre>
  
  <hr>
  
  <p>This .jsp file does a ton of <em>response.getWriter().println(...)</em> statements.</p>
  
  <p>When the HTML page is loaded on the ICE browser (from legacy IBM register), the .jsp page runs as expected, and the output is sent to the printer.</p>
  
  <p>When the HTML page is loaded on the Windows register, or my Windows PC, the browser comes up with the Open / Save / Cancel dialog.</p>
  
  <p>The JSP page is in a "Tomcat" directory on the server, and I've been reading about a lot of issues with Tomcat hosting JSP's to a windows client.</p>
  
  <p>How do i make the JSP run, rather than download?</p>
  
  <hr>
  
  <p>I've just read <a href="http://www.daniweb.com/web-development/jsp/threads/64219/how-to-execute-jsp-file" rel="nofollow">in one spot</a> that it is required to have Tomcat running on the client, which would cause this issue i think, but find that hard to believe.</p>