Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display a progress page for long run servlet?

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • 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.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's one hint
http://www.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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic