posts - 6,  comments - 0,  trackbacks - 0
            2005年1月21日
          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 @ 2005-01-21 17:37 LeighSword 閱讀(558) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 和政县| 长治市| 望江县| 黑水县| 象州县| 陵川县| 华坪县| 浦东新区| 榆中县| 富裕县| 松滋市| 维西| 龙南县| 始兴县| 道真| 永和县| 常熟市| 灯塔市| 白城市| 包头市| 汝阳县| 嘉兴市| 郴州市| 柘荣县| 调兵山市| 鲜城| 绿春县| 泰州市| 双辽市| 天镇县| 岳池县| 沈丘县| 图木舒克市| 红桥区| 武汉市| 三亚市| 车致| 舟山市| 荣昌县| 米脂县| 梨树县|