dcsimg
How can we make same applets running on 2 different browser independent of each other?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   paskal_sanil
Posted On:   Monday, March 1, 2004 10:11 PM

Hi all,
I am calling the same applet two times in a browser. So i declared all the variables to be shared by the 2 applets as "private static".
Now i want the applets in 1 browser to be independent of the applets in another browser when multiple browsers are invoked.(remember that each browser has 2 applets each).

In other words,same applets invoked in MULTIPLE BROWSERS should be independent of each other. How to go about doing that?
Thanks in advance.

Re: How can we make same applets running on 2 different browser independent of each other?

Posted By:   Stephen_McConnell  
Posted On:   Tuesday, March 2, 2004 05:29 AM

I don't think you can have your cake and eat it too....


If you have declared the variables "private static" they will be shared among different instance of the same applet running in the same JVM.... (Which is what is going to happen even when you run different browsers on the same box...)


Stephen McConnell

About | Sitemap | Contact