This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Content-Disposition in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Content-Disposition in IE" Watch "Content-Disposition in IE" New topic

Content-Disposition in IE

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I want to stream a pdf file and then show in the browser . res.setHeader("Content-Disposition", "inline;filename=temp.pdf;");
This works with netscape but in IE it shows blank page after starting a Acrobat process.
But if i use
res.setHeader("Content-Disposition", "attachment;filename=temp.pdf;"); this works with IE and netscape both . I am not able to figureout what is the problem . Anyone knows solution for this problem ? Please let me know .
Thanks in advance
Amit Kumar
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
This doesn't belong in this forum. This is the forum to talk about JAVARANCH not Java. I am moving this to the servlet forum. You can do a serach in that forum because I had exactly this same problem back in August.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
I agree. Here's the link:
subject: Content-Disposition in IE
jQuery in Action, 3rd edition