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 閱讀(553) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 福鼎市| 临邑县| 武义县| 观塘区| 汾西县| 江华| 昭觉县| 嘉兴市| 泸定县| 闵行区| 石棉县| 鸡泽县| 库伦旗| 濮阳市| 景东| 哈密市| 兰坪| 闸北区| 岢岚县| 延吉市| 七台河市| 佛山市| 桂东县| 平阴县| 象山县| 嘉义县| 曲水县| 修武县| 新民市| 天峨县| 台前县| 寻甸| 漯河市| 深水埗区| 怀集县| 舒兰市| 茶陵县| 博客| 上杭县| 海丰县| 蒙山县|