Re: Juglist Digest, Vol 6, Issue 5
"Jianshuo Niu" <[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
Hendrik:
Finally, I figured out the problem. It is a bug in IE to download PDF, WORD
and RTF file throught https. Here is the url helped me most:
http://forum.java.sun.com/thread.jspa?threadID=586671&start=15
Here is my final code:
response.setContentType(attachment.getImage().getContentType());
OutputStream os = response.getOutputStream();
response.setHeader("Cache-Control", "cache");
response.setHeader("Pragma","public");
response.setHeader("Cache-Control", "must-revalidate");
response.setStatus(HttpServletResponse.SC_OK);
os.write(attachment.getContent());
Thanks for your help.
Joshua
_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org