检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]吉林大学计算机中心,吉林长春130026 [2]中国人民银行长春支行,吉林长春130021
出 处:《吉林大学学报(信息科学版)》2002年第3期85-88,共4页Journal of Jilin University(Information Science Edition)
摘 要:针对动态网站频繁地从数据库中取得数据、与数据库建立连接时耗费服务器资源与时间的问题 ,给出了在 JSP(Java serverpages)中使用 Java Beans连接数据库的方法。该方法利用 Bean建立数据库连接 ,并将Bean对象存入 session中 ,响应 Http Session Binding Event事件 ,且利用 value Unbound方法 ,在 session对象中止时 ,执行关闭数据库连接对象的善后工作。讨论了将对象分别存入 page、 session、 appliction中的差异 ,证明了在 JSP中使用 Bean既可以简化 JSP网页结构 ,又可以保证系统的安全性和提高系统的执行效率。A method of setting up database connection is given by using JavaBeans in JSP(Java server pages) to solve such problems as wasting server source and long consuming time for the dynamic web site's obtaining data from database frequently. This method uses Bean to set up database connection,saves the Bean object in session ,respond the HttpSessionBindingEvent event, and uses valueUnbound method to close the Bean object of database connection while ending session. The diffrence of the Bean object in page,in session and in application is discussed.The result shows that the use of Bean in JSP can simplify the structure of JSP pages, ensure the security of system,and improve the executive efficiency.
关 键 词:JAVABEANS组件 JAVA数据库连接 JDBC-ODBC桥 组件 数据库
分 类 号:TP393.09[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.231