Showing progress bar in a jsp
Hi all
I have a scenarion where i click a button from a jsp which results in DB operation(This method is called from my servlet) and this operation may take some time.In this situation i wont be able to show the user about the status of the operation.(Now whats happening is the user wont be shown anything till the operation is complete)
Now what i need is ,i want to show the user a page showing that the operation is in progress and as soon as the operation is complete i need to show the proper page
How can i achieve this ?
Interestingly,
This thread posted just 1/4 an hour ago, does a pretty good job of displaying a "Please Wait...." screen. If you put a animated GIF in the Please Wait section, you can simulate a progress bar, though it wouldn't really be a progress bar.
Actually getting a progress bar, though, is a little more difficult, because the only way to get it to update is to do reqular refreshes that read a % done posted by the servler (or some status). It's possible, and if I have the time, I may try to whip up some code, but I may not have the time.
> Interestingly,> This thread posted just 1/4 an hour ago, does a pretty> good job of displaying a "Please Wait...." screen. ? I guess I forhot to post the thread: http://forum.java.sun.com/thread.jsp?forum=45&thread=554223
Hi. Do you know how to create a progress bar ?
In my JSP, i'm going to show some numbers and a progress bar telling the user how many % of a job (s)he has done. I'm doing a regular refresh and getting the %-number from a backend-method.
I'll be very thankful getting some advice.