my dog learned polymorphism*
The moose likes JSP and the fly likes Progress bar on IE6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Progress bar on IE6" Watch "Progress bar on IE6" New topic

Progress bar on IE6

Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
I have this website where when a user comes in, a lot of files get downloaded (.class ).
It takes a while, and as of now there is no visual indication to the user indicating the status of download.
As a matter of fact, the user doesnt even that there is something being downloaded in the background.
So, what they see is a browser window that doesnt do a whole lot.
I would like to show a progress bar kinda thing. I figured out how to show a progress bar(thanks to javaranch search feature).
However, from what I have seen, the progress bar is being displayed as an applet, which means the progress bar
won't show up on IE 6 by default. I can't expect all of my users to have JRE. How can I get around this.
David G Risner
Ranch Hand

Joined: May 02, 2002
Posts: 30
If the class files are going to run in IE's Java VM, pack the files into a cab archive and download this instead. IE will then display a progress bar on the bottom just like it does when downloading a large image.
For more information on and tools for packing class files into a cab archive, get the MS Java SDK from
If these class files will be running in the plug-in, the new JDK 1.4.0 plugin shows a progress bar (at least it did in the betas, I haven't tried it out in the release version).

David G. Risner<br />Software Engineer<br />California State University, Los Angeles
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Another suggestion would to take a more simplest approach.
Have an intermediate page that loads prior to your "long loading" task that gives some sort of visual indication to the user what is happening.
The intermediate page could say at minimum "Page is loading, please wait..." or you could find some sort of nifty animated gif to keep the user distracted.
Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
Thanks james, I'm working on your idea. But I'm not quite sure when to stop the "page loading" message. How do I know, if the download of the big jar is completed?
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Hi Rex,
Here is some basic code to get the idea across.
Servlet1 submits to Servlet2
Servlet2 is the intermediate page that provides the user with some feed back
and submits that data onto Servlet3
Servlet3 does the actual work (in this case download your applet etc)
Servlet2 is hacked in JavaScript but could be changed to use some other sort of request forwarding technique.

The code might some tweaking to compile
Saritha Penumudi
Ranch Hand

Joined: Aug 18, 2003
Posts: 147

Even I have the same requirement.

In the which code says that the request is being posted to servlet3.
It is sorta covered in the JavaRanch Style Guide.
subject: Progress bar on IE6
Similar Threads
Displaying progress when loading JSP
Progress Bar
ProgressMonitor problem
progress bar problem
FileReader progress