Solved

Applet To Applet Communication

Posted on 2002-05-28
6
214 Views
Last Modified: 2010-03-31
Communication between Two Applets
----------------------------------
I need a Answer for the following question
 I have two applets say Applet1 and Applet2,the Applet1 should call the Applet2 and it will send some parameters to the Applet2 and Applet2 manipulate the values and return the values to the Applet1.
 Please give me a feasible solution to achieve the above given functionality.
 
0
Comment
Question by:iyappan
6 Comments
 

Author Comment

by:iyappan
ID: 7039795
If anyone can give me a solution for the question Kindly help me to come from that problem.
Iyappan
0
 
LVL 18

Accepted Solution

by:
bobbit31 earned 100 total points
ID: 7040384
0
 
LVL 92

Assisted Solution

by:objects
objects earned 100 total points
ID: 7040608
If the two applets are on the same page then you can simply call applet methods directly:


Applet applet2 = applet1.getAppletContext().getApplet("Applet2");
int result = applet2.getResults(param1, params);
0
 
LVL 16

Expert Comment

by:Valeri
ID: 7041381
Take a look at java.net.ServerSocket as well.
0
 
LVL 35

Expert Comment

by:girionis
ID: 8798237
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- split points between bobbit31 and objects@idg

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question