• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can Java Applets be stored on the client?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic