Hi Ray,
Thanks for the reply, but i'm afraid it did'nt help me much.
May be i'll explain it clearly. I have a
servlet which embeds the html part (user interface).
When i tried calling the method of the applet, it didn't work out well
here's the sample code :
out.println("<html>");
out.println("<head><title>Mindteck Chat</title></head>");
out.println("<script language = 'javascript'>");
out.println("function logout()");
out.println("{");
out.println("var msg = \"leaves the room\" ");
out.println("document.chatapplet.broadcastMessage(msg)");
out.println("}");
out.println("</script>");
out.println("<body background=\"http://rasmeet:8080/gray.jpg\" onUnload = \"logout()\">");
out.println("<applet name = chatapplet code = "+ applet1 +
" codebase=/ " + "width = 600 height = 300>");
if(client != null)
{
out.println("<PARAM NAME = client VALUE=\" " + client + "\">");
}
out.println("</applet>");
out.println("</body>");
out.println("</html>");
what could be the reason ?
Thanx again !!