Hi Vincent,
Thanks fo your advice. I didn't find a solution yet, but since I posted my
message (in the middle of the nigth here !) I made lots of tests and
research. All I can say for the time being is that I must be doing something
wrong, because I made a working test case, reading a byte array from a valid
pdf file and sending it to IE5.5. IE5.5 opens and displays the file using
the plugin. So there is good hope that it will end working !
I will post the solution as soon as (and if !) I get one.
Pierre-Yves
-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de
Vincent BUI
Envoy� : jeudi 19 juillet 2001 09:58
� : [EMAIL PROTECTED]
Objet : Re: Request sent twice from IE5.5 and N6 when content type is
application/pdf
Hello Pierre-Yves
>If the servlet return the pdf data to the client,
>everything is ok with Netscape 4.
>But with IE5.5 and N6, a very strange thing happens :
>on the first request
>after the browser is loaded, when the service method
>returns, it is called a
>second time. This time, no parameters are provided.
>Of course, the result of
>the first call is not displayed. As the second call
>has no parameter, I get an error.
I don't know if it is related, but I had a similar
problem with IE and PDF contents, so I hope it may
help.
I'm using a servlet with Tomcat and Apache that calls
a cgi-bin program to have Oracle Reports query a
database and return a flow of PDF contents dynamically
(as opposed to a static file) ; the servlet then
processes the flow to the calling browser.
With Netscape, it did work, the browser proposed me
to see the flow or save it somewhere, but not with IE,
I had an empty document with an error in IE (it could
not find the proper viewer for the contents, although
the plug-in worked for static PDF files).
I had to ask the users to customise their Acrobat
Reader differently : deselect the option "Display
PDF in Browser" (v5) or "Web Browser Integration"
(v4), so that IE launches the Acrobat Reader and not
its plug-in and it worked properly.
Of course, it works only for an Intranet application
as mine, but not for an Internet application.
Hoped it helped...
Vincent
=====
Vincent BUI,
[EMAIL PROTECTED]
PS : la signature de propagande qui suit n'est pas de mon fait.
___________________________________________________________
Do You Yahoo!? -- Vos albums photos en ligne,
Yahoo! Photos : http://fr.photos.yahoo.com
___________________________________________________________________________
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
___________________________________________________________________________
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