maybe you should call your servlet with the option target=blank, for example: <a href="/MyServlet" target="_blank">PDF</a> This causes your Servlet output to appear in a new browser window - the old one is still there and should have the valid session. This only helps to hold the session, I think your problem still is the "'%PDF-' " error and Acrobat, but for this problem: don't know :-(
At 17:03 06.11.2002 +0100, you wrote:
Here's my problem,
Scenario I'm trying to send a PDF document, which has been rendered with FOP back to the client through ServletOutputStream. I'm generating a set of XML files that I then render into a PDF document and store the document onto the file system.
I then read in the file as a Byte Array and write this to the ServletOutputStream.
Sometimes I'm getting the "File does not begin with '%PDF-' " error message from Acrobat Reader. I've put a dummy ".pdf" at the end of the URL to fool IE but sometimes I still get the "'%PDF-' " error.
When this happens the browsers session is lost and the user will have to go back to login screen. In this case, if the user tries again to view the PDF, the session is killed straight away, the only way to get it to work again is to go into Task Manager in Windows and kill the AcroRd32.exe process and the iexplore.exe process.
If I don't kill the processes, then every time I attemped to launch the Acrobat plugin my session is invalidated.
Has anyone else come across this problem?
Environment Server IBM Websphere 3.5.5 running on AIX servers. Client Internet Explorer 5.5, Adobe 5.05 on Win2k
============================================== Jonathan McDonald - E-Business Web Development Honeywell Application Services (Ireland) Phone +353 51 309824 Fax:+ 353 51 309821 E-mail: [EMAIL PROTECTED]