Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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: 12769
    
    5
Did you set the content length and content types?
Bill

------------------
author of:
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??