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 閱讀(553) 評論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 恩施市| 敦煌市| 海安县| 平南县| 绵竹市| 灌南县| 上杭县| 定兴县| 九龙县| 阳朔县| 平罗县| 望都县| 莱西市| 云霄县| 巨野县| 临安市| 扬州市| 望都县| 凌海市| 江阴市| 峨边| 凤山县| 高唐县| 海城市| 洱源县| 常宁市| 黎川县| 昭通市| 洪泽县| 云阳县| 大洼县| 广水市| 阿合奇县| 平顶山市| 无极县| 仙游县| 静安区| 富裕县| 上蔡县| 滁州市| 固始县|