This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Waiting screen - how to ?

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
www.onjava.com/pub/a/onjava/2003/ 06/11/jsp_progressbars.html
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This old JW article should help you:
Streaming output
HTH
 
A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic