Solved

Progress Bar

Posted on 2004-09-20
3
4,855 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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.

708 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

14 Experts available now in Live!

Get 1:1 Help Now