Sounds great but way over my head :P...would you mind sharing your code for
me to look at.  Thanks so much Bruno.
Kenny

----- Original Message -----
From: "Bruno" <[EMAIL PROTECTED]>
To: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 12:28 PM
Subject: Re: [iText-questions] Can you have a second, HTML, stream going to
one browser


> Quoting "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>:
>
> > I hope this isn't off topic.  I want to display a "Please Wait" HTML
window
> > while my fairly long PDF generation takes place in the browser window.
Is
> > there a way to show the wait window, generate the PDF into Acrobat
Reader
> > in
> > the browser, and then close the wait window?  I've not figured a way to
do
> > it yet.
>
> I generate my PDFs in a Thread: myPdfGenerator implements Runnable
> I add this object myPdfGenerator to the HttpSession-object (one for
> each user)
> In myPdfGenerator I have a membervariable status = false.
> At the end of the run()-method I set status = true.
>
> My Servlet gets the myPdfGenerator from the HttpSession.
> If the status == false, I tell the page to Refresh after 3 seconds
> and I set the content-type to HTML with a PleaseWait-message.
> The output is sent to the client.
>
> This will be repeated every 3 seconds (unless the user closes
> his browser).
>
> As soon as the status == true I set the content-type to PDF
> and I write the PDF to the OutputStream. Of course you don't
> need to set the Refresh-header now.
>
> Bruno
>



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to