Click to See Complete Forum and Search --> : Calling method of an Applet


shuja
November 14th, 2003, 05:29 AM
I m developing a chat application. i have a server progam(chatserver.java) n a client prog(framechat.java) which communicates with the server. i have another applet(createroom) which will create a room if a user desire i want that this applet should call a method which is on the applet framechat.
i m trying to access framechat applet from createroom applet but it is not accessing it. i have written the following code

Applet receiver = null;
String receiverName = framechat; //Get name to search for.
receiver = getAppletContext().getApplet(receiverName);


but it is showing null value. both the applets r in same directory.
thanks for the help

Ishaibin
November 14th, 2003, 01:09 PM
post your applet code

shuja
November 14th, 2003, 11:53 PM
actually i m loading my applet through jsp. the code for loading the applet from jsp is as follows

for loading framechat applet i m calling framechat.jsp its code is

i mattachign a file as html code is not accepted
thanks for help