基于XML的数据库配置文件在JSP中的应用研究  被引量:3

Research on Application of Database Configuration File Based on XML in JSP Programming

在线阅读下载全文

作  者:史云鹏[1] 赵旻 

机构地区:[1]西安石油大学计算机学院,陕西西安710065 [2]山东省青岛市第五十一中学,山东青岛266071

出  处:《计算机与现代化》2007年第9期103-105,共3页Computer and Modernization

摘  要:分析了XML格式配置文件的特点及SAX(Simple Application interface for XML)解析的关键技术。针对在通常的JSP编程中,为了适应不同的系统环境而频繁修改数据库配置、驱动、连接程序模块的缺点,提出了将基于XML的数据库配置文件应用于JSP动态网页技术中,使连接数据库的信息配置业务从JSP应用程序的数据库连接模块中分离出来,避免了程序代码的重复修改和编译,增强了程序的复用、可移植性。On the basis of analyzing the features of XML configuration f'de and the key technology of XML parser, this paper introduees a method of using the configuration file based on XML in JSP, it separates database configuration file and the messages of connection from the operations on them, so as to reduce the coupling with configuration files and avoid the frequent modification of JSP program, Experiment results show that the strategy is efficient and extensible, at same time, the performance of system dealing with the issue of transaction and multi-thread is improved.

关 键 词:XML 数据库配置文件 SAX解析 JSP 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象