• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Waiting screen - how to ?

 
Stefan Geelen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to simulate a waiting screen using servlets.
When a user clicks on a button I excecute following:

The servlet will
1) Send a reponse back to the 'calculating' window indicating the user has to wait.
2) Starts up a Thread that performs the calculation (well in fact, it is generating a .pdf document).
Now my problems are following:
1) When the generation is finished I need to close the waiting screen and
2) The .pdf needs to send back to the main window.
I don't have any idea how to do this.
Any suggestions ?
Thanks ,
Stefan
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
www.onjava.com/pub/a/onjava/2003/ 06/11/jsp_progressbars.html
 
Tejpal Singh
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
www.onjava.com/pub/a/onjava/2003/ 06/11/jsp_progressbars.html

Pradeep the link does not work...
Maybe it should be...Progress Bars or http://www.onjava.com/pub/a/onjava/2003/06/11/jsp_progressbars.html
[ September 11, 2003: Message edited by: Tejpal Singh ]
 
Stefan Geelen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thanks for the quick response...
but unfortunately this article does not solve my questions.
It is not a problem for me to open a pop-up displaying a waiting message.
I can even close the waiting window (by letting this waiting window refresh automatically (calling again the servlet) and when the Working Thread is FINISHED closing this window by sending some Javascript to the window.
The problem remains is how to automatically display the PDF in the main window.
Stefan
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This old JW article should help you:
Streaming output
HTH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic