Can't see applet changes without reopenning browser

Hi,

The problem is that when I make some changes at

the applet ,I can't see them after reloading the

HTML page (converted of course) containing this applet ,unless I close the browser (IE5 ,Java plugin 1.3.1,win95)

and open it again.

What can be the problem?

Thanks,

Simon

[336 byte] By [ranchi] at [2007-9-26 4:37:10]
# 1

Hi,

When you are loading the HTML page first time, the information is stored in cache and each time you refresh the page the browser will get information from cache it self. It will not directly interact with web even though you make chages in the applet.So to over come this problem from Java Plugin 1.3.0 onwards, new feature is activated by including the new "cache_option" , "cache_archive" and "cache_version" values in the EMBED/OBJECT tag that specifies the use of Java Plug-in as below:

<OBJECT ....>

<PARAM NAME="archive" VALUE="...">

....

<PARAM NAME="cache_option" VALUE="...">

<PARAM NAME="cache_archive" VALUE="...">

<PARAM NAME="cache_version" VALUE="...">

</OBJECT>

or

<EMBED ....

archive="..."

....

cache_option="..."

cache_archive="..."

cache_version="...">

cache_option :

The cache_option attribute can take one of three values:

No

Disable applet installation. Always download the file from the web server without using browser or plug-in cache.

Browser

Run applets from the browser cache (default).

Plugin

Run applets from the new Java Plug-in cache.

For more details please go through the following URL:

http://java.sun.com/products/plugin/1.3/docs/appletcaching.html

Hope this will help you.

Anil

Developer Technical Support

Sun Microsystems,

http://www.sun.com/developers/support

ramanil_indts at 2007-6-29 17:55:47 > top of Java-index,Desktop,Deploying...