You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Skladovs, Victor" <Sk...@his.de> on 2003/08/06 15:08:15 UTC

IE6: Can't open dynamic PDF from applet

Dear Friends!

I have read a lot about so called "internet explorer PDF Bug" but none
of the suggested solutions has helped. Apart from that, I'm trying to
open my pdf file NOT from a html site, but from a APPLET.
Please take a little time and read my problem.

I'd like to open a dynamically generated (Cocoon 2.0.4) PDF file from an
applet using a method:

applet.getAppletContext().showDocument("http://myserver/cocoon/table.pdf
?par1=1&par2=2");

This works perfectly with all Netscape-like browsers (Mozilla etc).
It works with Internet Explorer 6 too, but only WHILE USING PROXY
SERVER.
But with Internet Explorer 6 WITHOUT PROXY it doesn't work.

Error message:
"Site cannot be opened. It is either not available or cannot be found.
Try it later again".

Anybody of the community must have faced this problem, I believe.
Are there workarounds for this problem? Why does it work with proxy
(cache?)?

Thank you very much in advance

Regards,
Viktor Skladovs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: IE6: Can't open dynamic PDF from applet

Posted by Beat De Martin <be...@gmx.ch>.
Hi
It might not be exactly your problem but I had problems with dynamic
generated pdf and proxies as well.

My dynamic generated pdf's have been cached by the proxy which I didn't for
obviuos reasons. What I did was the following. In my sitemap I have a match
like <map:match pattern="*.pdf* > ...
And the my pdf-link I created dynamically like
http://myserver/cocoon/table_XXX.pdf
where XXX is a kind of unique ID (e.g. timestamp)

So my pdf's will never be cached !

Another problem I had was using https and dynamic pdf's, but you're using
https aren't you ?

Are setting the content-length ?

Cheers
Beat De Martin
Zurich, Switzerland


> Dear Friends!
> 
> I have read a lot about so called "internet explorer PDF Bug" but none
> of the suggested solutions has helped. Apart from that, I'm trying to
> open my pdf file NOT from a html site, but from a APPLET.
> Please take a little time and read my problem.
> 
> I'd like to open a dynamically generated (Cocoon 2.0.4) PDF file from an
> applet using a method:
> 
> applet.getAppletContext().showDocument("http://myserver/cocoon/table.pdf
> ?par1=1&par2=2");
> 
> This works perfectly with all Netscape-like browsers (Mozilla etc).
> It works with Internet Explorer 6 too, but only WHILE USING PROXY
> SERVER.
> But with Internet Explorer 6 WITHOUT PROXY it doesn't work.
> 
> Error message:
> "Site cannot be opened. It is either not available or cannot be found.
> Try it later again".
> 
> Anybody of the community must have faced this problem, I believe.
> Are there workarounds for this problem? Why does it work with proxy
> (cache?)?
> 
> Thank you very much in advance
> 
> Regards,
> Viktor Skladovs
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: IE6: Can't open dynamic PDF from applet

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Skladovs, Victor wrote:
> Anybody of the community must have faced this problem, I believe.
> Are there workarounds for this problem? Why does it work with proxy
> (cache?)?

Check whether the Cocoon pipeline is exexuted multiple times for the
request, and fails after the first time. Check also
    http://xml.apache.org/fop/faq.html#iex-servlet-multiple
That's also often the reason why retrieving PDF over HTTPS fails.
It may help to use
  applet.getAppletContext().showDocument(
   "http://myserver/cocoon/table.pdf?par1=1&par2=2&e=.pdf");

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org