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 阅读(545) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: