Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Help in Progress Bar !

Thread view: 
fani - 21 Jun 2006 14:34 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.
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.