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 ?

[557 byte] By [sreenathreddy] at [2007-9-30 17:30:29]
# 1

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.

stevejluke at 2007-7-6 13:53:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
> 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
stevejluke at 2007-7-6 13:53:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
also in this thread: http://forum.java.sun.com/thread.jsp?forum=45&thread=443328It's a little heavy on Struts, but that could be stripped out and the rest still used.
bsampieri at 2007-7-6 13:53:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

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.

monaweras at 2007-7-6 13:53:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Look at the links provided in this post. At least one provides a progress bar.
stevejluke at 2007-7-6 13:53:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...