所以我制作了这个简单的JApplet并试图打开一个套接字并写入它,但我有一个例外,说我没有权限???
然后我看了看:http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html
我已经签了罐子,就是这样。在那之后我不知道该做什么????
在html文件中,
是什么<param name=file value="/etc/inet/hosts">
办?
有没有更简单的方法来签署japplet?
让我简单地问一下。如何让我的小程序打开一个套接字,让我说google.com的端口80?
答案 0 :(得分:1)
<param name=file value="/etc/inet/hosts">
这意味着当applet查询时,名称“file”的值为/etc/inet/hosts
。 E.G。
// in the init() method ..
String fileValue = getParameter("file");
// fileValue now has the value '/etc/inet/hosts'