applet中使用数据库的问题
java apllication中使用数据库可以
但是改编成在applet中运行就不可以了
请问这两者之间有什么区别》??是不是安全问题?
问题点数:20、回复次数:5Top
1 楼txlicenhe(马可)回复于 2003-11-01 16:00:55 得分 5
建议转版。Top
2 楼hotness28(小左)回复于 2003-11-02 07:31:53 得分 0
我想也是,不过java版很长时间都没人去Top
3 楼hotness28(小左)回复于 2003-11-02 07:32:24 得分 0
Can the JDBC-ODBC Bridge be used with applets?
Use of the JDBC-ODBC bridge from an untrusted applet running in a browser, such as Netscape Navigator, isn't allowed. The JDBC-ODBC bridge doesn't allow untrusted code to call it for security reasons. This is good because it means that an untrusted applet that is downloaded by the browser can't circumvent Java security by calling ODBC. Remember that ODBC is native code, so once ODBC is called the Java programming language can't guarantee that a security violation won't occur. On the other hand, Pure Java JDBC drivers work well with applets. They are fully downloadable and do not require any client-side configuration.
Finally, we would like to note that it is possible to use the JDBC-ODBC bridge with applets that will be run in appletviewer since appletviewer assumes that applets are trusted. In general, it is dangerous to turn applet security off, but it may be appropriate in certain controlled situations, such as for applets that will only be used in a secure intranet environment. Remember to exercise caution if you choose this option, and use an all-Java JDBC driver whenever possible to avoid security problems.
Top
4 楼lynx1111(任我行:一个PLMM看着就兴奋的男人)回复于 2003-11-02 09:20:23 得分 5
Applet是可以联结数据库的
可能是你的代码有问题
Top
5 楼lynx1111(任我行:一个PLMM看着就兴奋的男人)回复于 2003-11-02 09:21:20 得分 10
http://www.cn-java.com/target/news.php?news_id=601Top




