Click to See Complete Forum and Search --> : Sending values applet to applet
java intern
September 22nd, 1999, 04:03 PM
I am working on a project where I have to send several values from 1 applet to another applet on a separate page. I have been able to send a single value using this code:
getAppletContext().showDocument(new URL(getCodeBase(),"java2html.html?" + "message=" + URLEncoder.encode(labelPercentage.getText())));
but haven't been successful sending 2 or more values. Can anyone give me any suggestions? Thanks
October 1st, 1999, 12:41 AM
Try to look at this address: http://www.tactika.com/realhome/realhome.html for "Have Applets on the same page communicate with each other".
I have not try this code, but I hope it can help you.
Regards
Bent.
October 11th, 1999, 05:47 PM
Hi,
If you have been successful to pass values from page to page thru applets...please let me know how...i have been successful passing values on the same page but not yet on two different.
Please reply to kpk@mailcity.com
Thanks
Praveen.
poochi
October 11th, 1999, 06:15 PM
one solution is , create a dummy class and place some static variables in it.
store the values which you want to pass from applet1 to applet 2 into these static
variables. You can access this static class in your applet2 also. This will work but i wont this
this is a good solution.
Poochi..
November 3rd, 1999, 11:49 AM
Hi ,
Find a example of Applet Passing here. Source code included and works fine.
Any comments to : kpk@mailcity.com
Visit : http://genquote.tripod.com/praveen/index.html
Thanks
Praveen K
kpk@mailcity.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.