This solved a similar problem for me.... String mimeType = sc.getMimeType(filename); FileHelper helper = new FileHelper(); InputStream in = helper.fetch(filename, m_dir); response.setContentType(mimeType!=null?mimeType:"text/html"); response.setHeader("Pragma", "cache"); response.setHeader("Cache-Control", "cache");
OutputStream out = response.getOutputStream(); byte[] buf = new byte[1024]; int count = 0; while ((count = in.read(buf)) >= 0) { out.write(buf, 0, count); } in.close(); if (mimeType == null) out.write("</pre></html>".getBytes()); out.close(); -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14905302.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]