Hello Dears,
i have developed a web application in which i am exporting my reports
to pdf. its a time consuming process. I want to have a progress bar
that will keep me inform about current progress.
Can any body help me.
Thank You.
Sebastian Millies - 26 Jun 2006 16:26 GMT
Am 21 Jun 2006 06:34:36 -0700 schrieb fani:
> Hello Dears,
> i have developed a web application in which i am exporting my reports
> to pdf. its a time consuming process. I want to have a progress bar
> that will keep me inform about current progress.
> Can any body help me.
> Thank You.
I'm guessing that you're talking about an HTTP client that is
accessing a servlet, which will
a) either return the pdf file in its output stream (the HTTP response)
b) or archive the pdf file on a suitable server and return a
simple message (e.g. a download URL) in the HTTP response.
In either case, I believe you will have to use javascript to
display an animated progress bar on the client side and
terminate the javascript when the response is displayed.
If you want a real progress bar, it's going to be more
complicated, because you'll need to get a time estimate for
the task from the server first, and only then send the request
to export the report.
In case b) you could also use Javascript to query the server for
the actual progress (e. g. in terms of percentage of total time) in
order to update the progress bar based on real-time data while
the servlet is processing the original request. In case a)
that's probably impossible, because you couldn't display the
pdf response any more. Such are the limitations of HTTP clients.
Maybe some one else has a more helpful suggestion,
Sebastian
pradeepkumar.te@gmail.com - 27 Jun 2006 08:46 GMT
> Hello Dears,
> i have developed a web application in which i am exporting my reports
> to pdf. its a time consuming process. I want to have a progress bar
> that will keep me inform about current progress.
> Can any body help me.
> Thank You.
Hi,
If you use applet to download the pdf , the progress bar can be shown
using the JProgressBar swing component.
Thanks,
Pradeep