摘要
在JSP项目中,经常需要从数据库中取出数据把它显示在网页上,或者将网页上填写的数据输入到数据库中。但是在实际工作中,软件设计者常遇到数据库连接失败问题。由于设计者对数据库的运行机制认识混淆,使得无法分析出错误的原因。从JSP文件运行的基本环境和参数入手,分析数据库运行的环境和实现数据库操作的语句,得出了实现数据库的连接,必须满足3个方面条件的结论。1是Tomcat和JDK系统变量值的设置;2是数据库系统环境的配置;3是数据库的编程。
In the JSP project, often need to pull data from the database and display it on a web page, or fill out the page of data entered into the database. In practice, software designers often encounter database connection problems when the connection fails. Because designers understand the operating mechanism of the database confusion caused can not analyzed the cause of the error. This JSP file was run from the basic environment and parameters, analyzes the database to run database operations environment and implemented the statement, obtained the connection of database, must meet the three conditions of the conclusions. First, the value of Tomcat and JDK setting system variables; the second is the configuration of the database system environment; third is the database programming.
出处
《电子设计工程》
2011年第8期47-50,共4页
Electronic Design Engineering