Click to See Complete Forum and Search --> : java applet communication


Vinod Krishnan
February 10th, 1999, 07:05 AM
how to perform interapplet communication ?

for eg:

I want to pass the employee number which I retrieved from the database using one applet to another applet for generating a query in the second applet.

Sunil Sarje
February 27th, 1999, 04:23 PM
Hi Vinod!

The fact is that the Applets contained in the different html files

are not allowed to communicate with each other.

But we can achieve it by doing somthing like this


let say we want to communicate between applet01 & applet02.

Now u just create a new applet say applet03 class which contains

the objects of applet01 & applet02. And make all the managing things i.e.

event handing in the applet03 class sothat values from applet01 object can be

utilised for the further use or vice versa.


And last only add the class applet03.class in the final html file

which u have to show while browsing.


If u donot get satisfied with this trick

then mail me at

:sunil_sarje@mailcity.com

:javafaq@mailcity.com


Best Lucks

sunil sarje
February 27th, 1999, 04:23 PM
Hi Vinod!

The fact is that the Applets contained in the different html files

are not allowed to communicate with each other.

But we can achieve it by doing somthing like this


let say we want to communicate between applet01 & applet02.

Now u just create a new applet say applet03 class which contains

the objects of applet01 & applet02. And make all the managing things i.e.

event handing in the applet03 class sothat values from applet01 object can be

utilised for the further use or vice versa.


And last only add the class applet03.class in the final html file

which u have to show while browsing.


If u donot get satisfied with this trick

then mail me at

:sunil_sarje@mailcity.com

:javafaq@mailcity.com


Best Lucks