Applets are not allowed to open network connections to any computer, except for the host that provided the .class files. This is either the host where the html page came from, or the host specified in the codebase parameter in the applet tag, with codebase taking precendence. For example, if you try to do this from an applet that did not originate from the machine foo.com, it will fail with a security exception: Socket s = new Socket("foo.com", 25, true);就是说你的web server和你的database server必须在同一个物理机器上
如果你突破安全限制的,也是比较麻烦的,如果数据库的地质改变了
你还要可能重新对你applet做安全数字签名!
采用applet与servlet结合比较好!
如果你突破安全限制的,也是比较麻烦的,如果数据库的地质改变了
你还要可能重新对你applet做安全数字签名!
采用applet与servlet结合比较好!
解决方案 »
- 关于java socket编程中的长连接问题!!!
- 求霍夫曼代码
- 请问..有什么办法让父类去调用子类的方法
- Java结合XML的面向对象设计及其应用,有经验的XDJM进来讨论一下……
- 奇怪的问题,困扰了我好久,存储过程的返回值是Null,大虾进来看看!
- 极简单问题请教
- java API文档中的Interface和class各自的原理是什么,有什么区别和共同点?
- 老师布置的一道题目,把文本里面字母大小写改正确?求解
- 关于JDBC连接Oracle数据库,是否必须有Oracle客户端
- 求教各位大神关于Java g2d绘图的问题
- 在SQL server 2000中用JAVA实现图片存储
- 那位兄弟给段代码:连接Oracle数据库的。
web server:tomcat
Database :oracle8.1
JDBC:oracle jdbc 1.2