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 閱讀(554) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 固镇县| 宣化县| 富顺县| 分宜县| 琼海市| 富锦市| 宁阳县| 黎平县| 常山县| 淄博市| 隆昌县| 玉树县| 东台市| 海门市| 正阳县| 孟津县| 洛扎县| 三亚市| 北碚区| 大足县| 于田县| 隆尧县| 华阴市| 信宜市| 宣恩县| 调兵山市| 平定县| 迭部县| 兰州市| 宜兴市| 梁河县| 广昌县| 沂源县| 崇信县| 广丰县| 新和县| 绥化市| 肥城市| 禹州市| 治县。| 台前县|