aspose file tools*
The moose likes Servlets and the fly likes How to display a progress page for long run servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to display a progress page for long run servlet?" Watch "How to display a progress page for long run servlet?" New topic
Author

How to display a progress page for long run servlet?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
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.


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display a progress page for long run servlet?