• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to display a progress page for long run servlet?

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to display a progress page while the time consuming servlet is running? Does any one have an example or know a resource about this?
Thanks.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's one hint
https://coderanch.com/t/351364/Servlets/java/progress-mointor-JSP

This solution is basically a 'static' wait page. It's better than a blank screen, right??

This is just one of many posts, but I suck at choosing the right keywords when using UBB search. I'm sure this has been discussed a lot more on here, it's a common request.

People have talked about using threads to spin off the long-process. Then you do all sorts of things.

Like... have a single page refresh using meta tags, and checking the 'done pile' (the session, for example) for the expected message ("I am done this long process"), and if it's there, use sendRedirect to get them off that 'wait' page.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic