Solved

Progress Bar

Posted on 2004-09-20
3
4,859 Views
Last Modified: 2010-05-18
Hi,
        When I submit a page to JSP server , due to backend SQL query processing , it takes time of abt 3-4 minutes to show the result or response on the web page . I would like to add some progress bar like reporting in that front end unil all the backend processing over and to display the results.

Can anyone please suggest me some standard way of implementing the above requirement .

I have thought of splitting the backend process to 'n' queries and calling them one by one in the same page after succesful execution of each by redirecting the same page for next queries executions until all are executed. I will store the results in temp table every time and show the results after all queries completed.

(or) Is there any way of writing a component which will be written to pole and find the percentage  of work completed .

Please suggest some best practise to achieve this.

Regards,
Nagarajan S
0
Comment
Question by:pamboo
3 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 125 total points
ID: 12100309
http://www.onjava.com/pub/a/onjava/2003/06/11/jsp_progressbars.html

Though I just tend to use an animated gif of a progress bar with the words "please wait" ;-)
0
 
LVL 5

Expert Comment

by:KarcOrigin
ID: 12100499
This is just an idea:
When you click on the button which execute the update process, open an popup window displaying the message something like "Please wait server is processing the data..." when the server process is over unload this popup window and display the page which you want to display. As far as displaying the progress bar is concern it would never be 100% precise that could show the backend processing status. In this case you can show some sort of animated progress bar that goes from 0 to 100% and again start from 0 if your process is still executing.

Thx
0
 
LVL 3

Author Comment

by:pamboo
ID: 12131708
I got the same link thru Google search . Seems a very good technique and it helped me more . Thanks a lot .

Regards,
Nagarajan S
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With more and more people tethered to the internet, advertisers can reach you in new and creative ways. Push notifications on your smartphone, customized advertisements based on your previous searches, and email inboxes filled with promotional pitch…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now