I have a JSP which is divided into 2 side-by-side frames.
The left frame contains an applet which displays a JTree and the right frame contains buttons like "Add Node", "Remove Node".
When "Add Node" button is clicked, a Tree Node has to be inserted into the JTree component in the applet on the left frame. How do I access this component in the left frame.
Basically, what I am asking is how do I access a component in the left frame from an action in the right frame? Is there a way to add the JTree object or the applet to the session as an attrbute? If yes, then how do I do it? If I can somehow add the applet to the session, then I can access it from the Session and invoke the appropriate "add" method!
Here is the code for the left frame that holds the Tree applet:
<html>
<head>
<title>Study Tree </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Study Tree
The tree displays all the Surveys, Questions and Responses in this Study
<div align="center">
<jsp:plugin
type="applet"
code="StudyTree.class"
jreversion="1.3"
align="center" height="60%" width="90%"
nspluginurl="http://java.sun.com/products/plugin/1.3.0_01
/plugin-install.html"
iepluginurl="http://java.sun.com/products/plugin/1.3.0_01
/jinstall-130_01-win32.cab#Version=1,3,0,1" >
<jsp:fallback>Unable to start Java Plug-in.
</jsp:fallback>
</jsp:plugin>
</div>
</body>
</html>
Please help, its urgent!