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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 固始县| 浦北县| 贵定县| 楚雄市| 南岸区| 略阳县| 五莲县| 成安县| 漯河市| 浦县| 岳池县| 泾川县| 南木林县| 库伦旗| 醴陵市| 镇雄县| 二手房| 施秉县| 高安市| 江源县| 城固县| 虞城县| 海兴县| 永仁县| 丽水市| 周至县| 太湖县| 尖扎县| 全州县| 九龙城区| 璧山县| 安国市| 马鞍山市| 兴文县| 霍林郭勒市| 达孜县| 吉木乃县| 宜都市| 兴宁市| 沁源县| 苏州市|