call applet function in jsp
hi all,
i have an jsp application in which i have implemented an applet whic displays tree with checkboxes.i have implemented one servlet which gives all the nodes to applet to display the tree view. now when the user selects the nodes or check boxes of the tree and clicks the search button in the jsp page. how can i get the nodes selected in an applet. is there any way to call the applet function which will return all the nodes selected by user when jsp form is submitted.i am submittin the form to another jsp where i performing some other tasks.
any help will be greatly appreciated.
thanks in adv.
[631 byte] By [
paridaa] at [2007-11-27 6:06:38]

# 1
I dunno much about this since I've never used Applets but I'd probably try setting some fields in the HTML page using JavaScript ( http://www.rgagnon.com/javadetails/java-0175.html ) or I'd try to call my JSP with the required fields and data as parameters in a query string from the Applet ( http://www.geocities.com/gnashes30/java/tutorial/new_win.htm )
My understanding is that since the Applet is run on the client-side, once you submit the page the Applet and it's data is not available to the server-side code that receives the request and so you can't directly access the data. I could be wrong though, never worked with this stuff.
You can also take a look at this earlier, kinda similar, topic http://forum.java.sun.com/thread.jspa?threadID=5177095&messageID=9685515#9685515