Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Java Applets be stored on the client?

 
Samuel Quiring
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am weighing using an ActiveX control vs. a Java Applet for my web page. One factor is download time. If I install an ActiveX control on the client's PC, then it is there and won't need to be downloaded again. It looks to me like a Java Applet will be downloaded every time the user visits my web page. Is that correct? Will the browser cache the applet and only redownload it if it has changed?

Thanks
-Sam
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jar files that make up an applet will be cached by the browser. The user has the option of turning this off (in the Java Plugin control panel) but caching is on by default, and most users probably never venture into that control panel to change things.

The browser just checks if the date of the jar file has changed; if it hasn't, then it's not downloaded again.
 
Samuel Quiring
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer. Since you did not mention it, I take it there is no way to install an applet on the client machine, so even if the user had browser caching turned off, the browser would find and use the installed applet.

-Sam
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samuel Quiring wrote:Thanks for the answer. Since you did not mention it, I take it there is no way to install an applet on the client machine, so even if the user had browser caching turned off, the browser would find and use the installed applet.

-Sam


You might want to look into "Java Web Start", which exists to solve the problems you describe.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic