posts - 6,  comments - 0,  trackbacks - 0
          First, the applet would have to know the current session id, so you would need to put the applet in a jsp, and dynamically create an applet parameter that contains the session id.

          Then you would need to use a URLConnection to connect to the servlet, and pass the session id to the server, either as a cookie value or using url rewriting.

          Once you have done that you can create ObjectInputStream's and ObjectOutputStream's on both the applet and servlet side to pass the required session variables.

          Just note, that this would mean the applet is actually going to download the object to the client side, so it might be a bad idea if your application runs over the internet. And this also means your applet would need to be signed. 
          posted on 2005-01-21 17:37 LeighSword 閱讀(558) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 铜鼓县| 浪卡子县| 安化县| 天津市| 岑溪市| 大悟县| 怀宁县| 通榆县| 巴彦淖尔市| 正宁县| 泰来县| 昌邑市| 公安县| 普宁市| 合江县| 纳雍县| 东源县| 阳山县| 南乐县| 深州市| 青海省| 华宁县| 焦作市| 平罗县| 信阳市| 双鸭山市| 阿克陶县| 蓬溪县| 高平市| 汨罗市| 屯门区| 上杭县| 达州市| 永吉县| 郸城县| 屏山县| 德格县| 罗甸县| 万山特区| 镇雄县| 天等县|