首页 | 本学科首页   官方微博 | 高级检索  
     检索      

在JSP中访问数据库的方法
引用本文:张红梅,王磊.在JSP中访问数据库的方法[J].实验科学与技术,2006,4(4):39-40,50.
作者姓名:张红梅  王磊
作者单位:1. 安徽电子信息职业技术学院,蚌埠,233030
2. 蚌埠学院,蚌埠,233030
摘    要:通过实例,介绍了两种常用数据库的连接方法,向读者展示了JSP页面是如何同ACCESS数据库及SQL server数据库进行连接的过程,并给出了相关程序代码。通过比较可以看出:利用Java Bean将数据库的连接封装起来,当多个页面都需要连接数据库时,可以直接调用相应的Bean,减小了代码的重复书写,更加方便、快捷。

关 键 词:数据库  连接
文章编号:1672-4550(2006)04-0039-03
收稿时间:2006-04-08
修稿时间:2006年4月8日

Method of Visiting Database in JSP
ZHANG Hong-mei,WANG Lei.Method of Visiting Database in JSP[J].Experiment Science & Technology,2006,4(4):39-40,50.
Authors:ZHANG Hong-mei  WANG Lei
Institution:1.Anhui Vocational College Of Electronics & Information Technology Department Bengbu 233030; 2.Bengbu College Bengbu 233030
Abstract:This paper has displayed the connecting process in which JSP webs connect with ACCESS as well as SQL server and has also provided related program codes. Through the comparison of two kinds of connection ways advantages in convenience and speed have been proved especially when multi pages waiting to connect to the access, because the hechnique can seal the cconecfions with the ACCESS with Java Bean by directly applying the related bean without recopying the program codes.
Keywords:JSP
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号