节点文献
基于XML的数据库配置文件在JSP中的应用研究
Research on Application of Database Configuration File Based on XML in JSP Programming
【摘要】 分析了XML格式配置文件的特点及SAX(Simple Application interface for XML)解析的关键技术。针对在通常的JSP编程中,为了适应不同的系统环境而频繁修改数据库配置、驱动、连接程序模块的缺点,提出了将基于XML的数据库配置文件应用于JSP动态网页技术中,使连接数据库的信息配置业务从JSP应用程序的数据库连接模块中分离出来,避免了程序代码的重复修改和编译,增强了程序的复用、可移植性。
【Abstract】 On the basis of analyzing the features of XML configuration file and the key technology of XML parser,this paper introduces 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.
- 【文献出处】 计算机与现代化 ,Computer and Modernization , 编辑部邮箱 ,2007年09期
- 【分类号】TP311.13;TP312.2
- 【被引频次】3
- 【下载频次】121