开发者

problem with applet database access

开发者 https://www.devze.com 2023-02-19 14:40 出处:网络
the applet(which make connection to access database) i developed is working fine in applet viewer, but when embedded in an html file, it cannot access the database. how can i rec开发者_运维知识库tify

the applet(which make connection to access database) i developed is working fine in applet viewer, but when embedded in an html file, it cannot access the database. how can i rec开发者_运维知识库tify it?


An applet lives in a security sandbox. In order for you to do file io, your applet jar(s) need to be signed.

http://introcs.cs.princeton.edu/85application/jar/sign.html


Applets respect same origin policy. It cannot connect to any other sever other than where it is hosted. You database and your webserver needs to be on same ip.

0

精彩评论

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

关注公众号