problem with applet database access
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.
精彩评论