Clearing Cache Problem
Hi,
I have an Jsp page which loads the applet.
The problem is that the applet doesnot behave exactly what is required to behave. However, Once the cache in the Java Settings of the Browser is erased, it behaves perfectly.
So, is there any method/ way to clear the cache before the applet gets load?
Is there any modifications to do in the jsp which loads the applet?
Or is there any code to be added to init() of applet?
Ne ideas?
The requirement is that It should work in all the latest browsers!!!
<applet ARCHIVE="epm-applets.jar" code="common.applets.ScrollApplet.class" name="MenuTreeApplet" width="730" height="400" hspace="0" vspace="0" align="top" MAYSCRIPT>
# 1
> So, is there any method/ way to clear the cache before the applet gets load?
No.
> Is there any modifications to do in the jsp which loads the applet?
No, but the browser doesn't know anything about JSP. It gets HTML, and sees the applet tag and does it's thing. The fact of using JSP has no impact whatsoever.
> Or is there any code to be added to init() of applet?
Dunno... depends what you are doing? What do you mean "does not behave"?
# 2
Hi,
Say that, for example, I have a Pop-Up in my applet, for one of the places, I want the pop-up to behave diffrently, (like couple of menus to get disabled) n other places enabled!!... This is just a senario.
Like this i have so many other places, relating to other Components.
Unless I clear the Cache, it does not behave exactly..
So, is there any code to be written in Jsp file to load the applet?
Or else is there any other way to clear the cache (other than manually) ?
# 3
> So, is there any code to be written in Jsp file to load the applet?
Just the applet or object/embed tags.
> Or else is there any other way to clear the cache (other than manually) ?
No, there isn't. It'd be considered a security problem.
Is this a problem with testing the applet and if you compile a new one, that it doesn't work right? Then possibly you are having things created, maybe as static fields or singletons that are hanging around? Just restart the browser.
# 4
Hi,Yes this is exact problem.. I always restart the browser whenever the applet gives the problem. Then It starts working.. After some time again problem apears.. So, I tot like i could give some logic to clear cache at some time interval....So, there any way?