You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Kuehnberger <Ku...@web.de> on 2001/10/09 10:52:02 UTC
Servlet called twice
Hi,
My servlet can produce html or pdf, depending on a parameter which is
passed.
I read the discussion about that problem, but whatever I tried my
servlet is still called twice when the output is pdf,
if the out output is html the servlet is invoked just once.
If someone can please help me with that
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Servlet called twice
Posted by Eric Dalquist <eb...@mtu.edu>.
The problem with the servlet being called twice is a problem with Internet
Explorer and the way it handles foriegn MIME types. in IE 5.5 and below the
document is requested and one IE sees that it is a MIME type it does not
handle it then loads Acrobat and re-requests the document. There is no real
work around for this problem other than using IE 6 or better, Netscape or
Opera.
-Eric Dalquist
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Servlet called twice
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
On Tuesday 09 October 2001 10:52, Kuehnberger wrote:
> my servlet is still called twice when the output is pdf,
Are you using Internet Explorer as a client?
If yes, this is a known problem: IE often does additional requests for
non-HTML files. AFAIK this is hard, if not impossible, to solve on the server
side.
--
-- Bertrand Delacr�taz, www.codeconsult.ch
-- web technologies consultant - OO, Java, XML, C++
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Servlet called twice
Posted by Alex McLintock <al...@yahoo.com>.
--- Kuehnberger <Ku...@web.de> wrote: > Hi,
>
> My servlet can produce html or pdf, depending on a parameter which is
> passed.
ok.
> I read the discussion about that problem, but whatever I tried my
> servlet is still called twice when the output is pdf,
> if the out output is html the servlet is invoked just once.
hmmm. So what exactly have you tried? You really ought to be more explicit
in asking for help. It is only polite.
> If someone can please help me with that
Well, lets see.
Step one: bring down Microsoft and stop your users from using Microsoft products.
Oh, that might be a bit outside your remit.
Step Two:
Have you checked to see whether the first request is a HEAD request? if so then
you probably don't need to respond with the full PDF that time.
If you still have the problem then the only solution I can suggest is that your
servlet *saves* the pdf to disk and returns the browser some html which corresponds
to a frameset. The frameset should have two frames, one zero height, the other full height.
The full height frame should point to the saved pdf.
Hopefully this will help.
=====
Alex McLintock alex@OWAL.co.uk Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org