Communication between applets
Yes. It is possible to achieve interoperability between applets if they are on the same page and originate from the same domain. You will need to first name the applets on the page using the "name = value" attribute, for example:
<applet code="FirstApplet.class" name="firstApplet" width=nn height=nn></applet>
<applet code="SecondApplet.class" name="secondApplet" width=nn height=nn></applet>
with the above in FirstApplet.java, use the following to access SecondApplet:
SecondApplet secondApplet =
(SecondApplet)getAppletContext().getApplet("secondApplet");
//invoke a method on secondApplet here
Similarly, you can access FirstApplet in SecondApplet.java
source to share
Two applets in the same Applet Context can communicate fairly easily. Unfortunately, the definition that two applets are in the same context is not documented. Implementations can do amazing things, especially when handling errors or running out of resource conditions.
Typically, you have to go back to the browser using LiveConnect to respond, like Matthew Flashen's answer.
You can go ahead and contact the origin server. Even if applets are loaded from different hosts, it is possible to establish a communication path between the two sources. HTTP, or the very best HTTPS, should be a reliable way to communicate with the server.
source to share