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.
posted 8 years ago
Can you post the code from your servlet? Setting the Content-disposition header to inline is working for me in both IE7 and Firefox2.