• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Error while opening a pdf file in IE7

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic