[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Applet caching - without need to reload applet every visit to page

Posted on 2004-10-21
Medium Priority
Last Modified: 2012-06-27

Hi guys,

I have an applet (3rd party) included are 2 files a .jar and a .cab

i'm trying to create a simple html page that will just load the applet and stick it into cache so that the client
doesn't have to go through downloading the applet everytime they go to the pages where the applet is on.

here is my code
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="200" height="200" align="baseline"
<PARAM NAME="code" VALUE="com.chatspace.v400321.Chat">
<PARAM NAME="codebase" VALUE="file://c:/gmsapplet">
<PARAM NAME="archive" VALUE="cfs40321.jar">
<PARAM NAME="cache_archive" VALUE="cfs40321.jar">
<PARAM NAME="cache_version" VALUE="">
<PARAM NAME="cache_archive_ex" VALUE="cfs40321.jar;preload">

--------------- as you can see the applet name is cfs40321.jar
its located locally on any machine this is run from in c:/gmsapplet/ directory
this directory currently includes cfs40321.jar, cfs40321.cab and the above shown html file

this is running on a browser that has Java v 1.4.2 installed
and Microsoft VM is turned off in the browser settings

.... the applet does load and i get promted to "Accept" the certificate and all, BUT it is not stored in the cache..

this is my first time working with applets, what am i doing wrong?

Question by:splavik
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 86

Expert Comment

ID: 12373146
If you open the Plugin control 'applet' from Control Panel, you will be able to set the caching properties

Author Comment

ID: 12374787

that is one of the problems, the caching is turned ON in the applet (when i go throught he Control Panel)

also, when i look at the objects in cache the particual Applet is actually in the list, but
still every time i go to the page it asks me to download it.

very strange behaviour
LVL 92

Expert Comment

ID: 12375778
> <PARAM NAME="archive" VALUE="cfs40321.jar">

remove that line
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 92

Expert Comment

ID: 12375799
> still every time i go to the page it asks me to download it.

it doesn't actually 'ask' you to download it.
Are you sure you're not referring to accepting the cert?
To stop this click "Always" when prompted.

Author Comment

ID: 12376523

it is the cert, but when i click on Tools | Internet Options |Settings |Objects - on my Internet Explorer java 1.4 shows up but this component does not...

or should that not matter and just being in the "JVM" cache is enough?

the reason for my post was that some clients who are behind a firewall do not have the ability to

Run the page with the applet, so we need to give em some sort of a "workaround" which to me was
enough to give them the files, the administrator would run that file logged in as admin on each machine, run the
html and i guess always accept on the cert, and it should work ?

i'll try that give u heads up tomorrow AM

LVL 92

Accepted Solution

objects earned 150 total points
ID: 12377102
no need to cache if you're running it locally.

what is the firewall blocking thats causing a problem?

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question