Title: RE: Problem sending a pdf file from servlet

see Micro$oft Internet Explorer <6 bug Q293792

seems there is'nt a good workaround yet...


-----Mensaje original-----
De: Ken Barron [mailto:[EMAIL PROTECTED]]
Enviado el: mi�rcoles 24 de abril de 2002 16:18
Para: [EMAIL PROTECTED]
Asunto: Problem sending a pdf file from servlet


Hi
I've seen a few similar questions on this mailing list but no answers yet.

I'm invoking a servlet through the showDocument() method in my Applet.
The doGet() method of the servlet generates a pdf file and writes it to the
OutputStream.

- In the Visual Age Websphere test environment, the file loads correctly in
my browser, although often the doGet method is invoked twice (and the file
is sent to the browser only after the second invocation).
- Using Webshpere 3.5.5, the servlet completes its execution and then I get
the 'File Download' dialog.  Clicking on either 'Save As...' or 'Open' I
get a download error of site unavailable.

I've tried using both "Content-disposition","inline"
and "Content-disposition","attachment; file=xxx.pdf"

I'm using response.setContentType("application/pdf"), setting the content
length and flushing the outputstream.
I'm testing this with Internet Explorer 5.5

Any help much appreciated.

Ken Barron

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


---------------------------------------------------------------------------
Este correo electr�nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci�n de car�cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgaci�n, copia o distribuci�n a terceros sin la previa autorizaci�n escrita de Indra. En el caso de haber recibido este correo electr�nico por error, se ruega notif�quese inmediatamente esta circunstancia mediante reenv�o a la direcci�n electr�nica del remitente.
---------------------------------------------------------------------------
The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail.
---------------------------------------------------------------------------

Reply via email to