How to show the progress of a process in a jsp or a servlet?
Hey guys..! my application imports data from a remote database into it's database.Now I want to show the user the progress while importing is going on.Otherwise, when importing a very large no. of records it would appear to the user as if the system is hanging on....I think I shall have to use multithreading.Please, tell me how to show the status of the importing process using servlet or jsp?
> Otherwise, when importing a very large no. of
> records it would appear to the user as if the system
> is hanging on....I think I shall have to use
> multithreading.
Not really. Using a page-by-page iterator should be enough in this case.
Search for JSP tags that provide that functionality. There are quite a few of them on the Web.
if for some reason(s) the first solution doesn't apply, then you'll probably have to use a progress bar & threads:
http://www.onjava.com/pub/a/onjava/2003/06/11/jsp_progressbars.html