Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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?
 
Similar Threads
How to show progress?
Displaying progress when loading JSP
Progress Bar
Running Heavy Background process in struts 1.2
Setting view to a a jsp page from a self refeshing page