--- Kuehnberger <[EMAIL PROTECTED]> 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        [EMAIL PROTECTED]    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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to