File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Must reload PDF servlet in IE 5.5?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Must reload PDF servlet in IE 5.5??" Watch "Must reload PDF servlet in IE 5.5??" New topic
Author

Must reload PDF servlet in IE 5.5??

Travis Gibson
Ranch Hand

Joined: Oct 17, 2000
Posts: 100
Howdy fellow ranchers,
I'm trying to pass a PDF(ByteArrayOutputStream) document in a servlet. All is working well, except IE 5.5 won't display unless I press the refresh button. I've tried flushing buffers, and closing response. Can anyone help?

------------------
Regards,
Travis M. Gibson, SCJP
Java Developer
www.travismgibson.com
travis@travismgibson.com


Regards,<BR>Travis M. Gibson, SCJP<BR>Java Developer<BR>www.travismgibson.com<BR>travis@travismgibson.com
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
Did you set the content length and content types?
Bill

------------------
author of:


Java Resources at www.wbrogden.com
Travis Gibson
Ranch Hand

Joined: Oct 17, 2000
Posts: 100
William,
Thanks alot setting the Content Length solved my problem. I love JavaRanch I had been trying to figure this out for almost two hours. But can you tell me why the setContentLength() solved this problem.

------------------
Regards,
Travis M. Gibson, SCJP
Java Developer
www.travismgibson.com
travis@travismgibson.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Must reload PDF servlet in IE 5.5??
 
Similar Threads
Page Number on JSP
Can I learn XML On My own?
FileNotFoundException from Servlet
Display of PDF file through a servlet?
open a pdf file from a servlet