2004 IR Help Posted August 20, 2006 Share Posted August 20, 2006 By: Mannix Reyes - mannixreyes viewing PDF or XLS in SSL problem 2003-05-20 23:36 Hi, i generate pdf & xls in a servlet & pass it to the client by streaming.. my connection is in SSL, but when it reaches the cleint... IE displays "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?" But the generated html is fine. What causes this message ? Thanks =) By: David Rollins - rollinsd RE: viewing PDF or XLS in SSL problem 2003-07-17 12:28 I'm having the same problem. I was wondering if you had managed to resolve the problem. It is more of an annoyance than anything else, but I would like to keep our system as clean as possible. By: David Hardwick - dhardwick RE: viewing PDF or XLS in SSL problem 2003-07-24 12:40 I just experienced the same problem with trying to print the PDF within an SSL stream, and I created a work around by prepending http:// to the form action. This is not desired because the form is not all that secure. This is not a Jasper Reports problem, though, so I'm going to check google for other folks having this problem too. By: David Hardwick - dhardwick RE: viewing PDF or XLS in SSL problem 2003-07-28 08:32 This seems to be a known problem even within IE 6 sp1. http://support.microsoft.com/default.aspx?scid=kb;EN-US;323308 http://support.microsoft.com/default.aspx?scid=kb;en-us;815313 This problem does not occur with netscape. There were some responses to this on the iText site as well. - - - - http://www.lowagie.com/iText/faq.html#msie - - - - I've been playing around with different CacheControl and Pragma setting but with no success thus far. Based on the KB article from MS, they say this problem will get fixed in SP2 for IE 6. Regards, David By: David Rollins - rollinsd RE: viewing PDF or XLS in SSL problem 2003-07-29 09:05 Thanks for the update. I'll try it. By: David Hardwick - dhardwick RE: viewing PDF in SSL problem (SOLUTION) 2003-07-28 09:14 Okay, here's the solution for sending dynamic content in a byte stream over SSL when using Internet Explorer bytes = JasperRunManager.runReportToPdf (reportFile.getPath(), parameters, conn); res.setContentType("application/pdf"); //-IE- Issue with IE and SSL, zero out all CACHE parameters res.setHeader("Expires", ""); //-IE- res.setHeader("Cache-Control", "");//-IE- res.setHeader("Pragma", "");//-IE- res.setContentLength(bytes.length); ServletOutputStream ouputStream = res.getOutputStream(); ouputStream.write(bytes, 0, bytes.length); ouputStream.flush(); ouputStream.close(); Thanks to Todd Murphy for providing me with the solution (I emailed the person in another forum and they just got back to me...I tried it out and it worked.) By: pyosky - pyosky RE: viewing PDF in SSL problem (SOLUTION) 2005-02-22 04:12 that didn't help me, but a post in the iText forum did. http://sourceforge.net/mailarchive/message.php?msg_id=2658745 mind the link to microsoft... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now