• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while opening a pdf file in IE7

 
Danush Karthik
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to open a pdf file in a servlet by setting the content disposition header to 'inline' so that the pdf opens in the same window. I am able to open the same in the IE6 browser but when I try to open the same in IE7 I get a blank page being displayed. I use the response.getOutputStream to write the byte array of the pdf to the screen.
If any of you have encountered similar kind of problem and have got a solution, please post a reply.
 
Scott Escue
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Danush,

Can you post the code from your servlet? Setting the Content-disposition header to inline is working for me in both IE7 and Firefox2.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!