posts - 6,  comments - 0,  trackbacks - 0
            2005年1月14日
          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)編輯 收藏
          Java technology (version 2) is both an object-oriented programming language and a platform developed by Sun Microsystems. Java technology is based on the concept of a single Java virtual machine (JVM) -- a translator between the language and the underlying software and hardware. All implementations of the programming language must emulate the JVM, thus enabling Java programs to run on any system that has a version of the JVM.

          The Java programming language is unusual because Java programs are both compiled (translated into an intermediate language called Java bytecodes) and interpreted (bytecodes parsed and run by the JVM). Compilation occurs once, while interpretation happens each time the program is run. Compiled bytecode is a form of optimized machine code for the JVM; the interpreter is an implementation of the JVM.
          posted @ 2005-01-14 16:48 LeighSword 閱讀(638) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 洪雅县| 青川县| 元谋县| 井陉县| 逊克县| 龙里县| 仙游县| 微山县| 连南| 同江市| 通山县| 师宗县| 米脂县| 永和县| 旌德县| 万载县| 鄂托克旗| 福鼎市| 石狮市| 尚志市| 乌拉特前旗| 太和县| 望奎县| 华池县| 香格里拉县| 白玉县| 西昌市| 屏南县| 嘉峪关市| 龙州县| 清原| 高密市| 左贡县| 延寿县| 白朗县| 曲麻莱县| 焦作市| 县级市| 滦平县| 肇源县| 梅河口市|