开发者

java.util.PropertyPermission file.encoding read for signed applet

i have an applet that is called by javascript from an html page. the applet enters the value fr开发者_JAVA百科om the page to an access database. i have signed the applet but still "(java.util.PropertyPermission file.encoding read)" error is showing..

UPDATE: Ive read that when a signed applet is accessed from javascript, it behaves as an unsigned applet. How can we rectify it?


You have to wrap the calls which need more privileges in AccessController.doPrivileged(...).

Of course, first check that they are legitimate, i.e. they can't do anything bad even if called from evil JavasSript code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜