c****u 发帖数: 3277 | 1 I am writing a server-client application.
server side is a application using socket,
client side is applet. Now the problem is that I have to modify
java.policy to enable the applet to communicate with server via
socket. Is there any way to avoid this problem? Thanks a lot. |
g*****g 发帖数: 34805 | 2 If the web server hosting the applet is the one you are runing
server side application, you don't need any policy file.
【在 c****u 的大作中提到】 : I am writing a server-client application. : server side is a application using socket, : client side is applet. Now the problem is that I have to modify : java.policy to enable the applet to communicate with server via : socket. Is there any way to avoid this problem? Thanks a lot.
|
c****u 发帖数: 3277 | 3 I mean I have to modify client's java.policy, that's really bad.
【在 g*****g 的大作中提到】 : If the web server hosting the applet is the one you are runing : server side application, you don't need any policy file.
|
g*****g 发帖数: 34805 | 4 No, if the applet only connect to the server hosting it, no policy
file is needed.
【在 c****u 的大作中提到】 : I mean I have to modify client's java.policy, that's really bad.
|
c****u 发帖数: 3277 | 5 I got it. For now, the server hosting applet and the application the
applet connects to are not at the same place. Thanks for your reply.
【在 g*****g 的大作中提到】 : No, if the applet only connect to the server hosting it, no policy : file is needed.
|