CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  MS-SQL Server >  基础类

applet中使用数据库的问题

楼主hotness28(小左)2003-11-01 15:46:00 在 MS-SQL Server / 基础类 提问

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

相关问题

  • vc++中使用数据库
  • 数据库中BOOKMARK的使用
  • 在vb中使用数据库。
  • 请教在JAVA中使用数据库!
  • vb中使用多数据库操作。
  • 如何在VB中使用数据库
  • VS2005中怎样配制用户角色数据库使用access数据库?
  • 如何在NSF数据库里面使用APPLET?
  • SQL Server 中,怎么在一个数据库中,使用其它数据库的存储过程阿?
  • 请教如何在delphi中对access数据库进行压缩,我使用的数据库驱动是ADO。

关键词

  • 数据库
  • jdbc
  • security
  • applet
  • untrusted
  • odbc
  • bridge
  • 问题
  • called

得分解答快速导航

  • 帖主:hotness28
  • txlicenhe
  • lynx1111
  • lynx1111

相关链接

  • SQL Server类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo