摘要
基于J2EE平台的框架技术是目前开发Web应用的主流技术。其中,Struts框架基于MVC设计模式,清晰地划分了控制部分、业务逻辑和视图,实现了各层之间的解耦;而Hibernate对JDBC提供了轻量级的对象封装,降低了业务模型部分开发的难度。整合这两种框架的J2EE架构是Web应用开发的完美选择。本文以某企业办公系统E-WORK的开发为背景,重点阐述了Struts和Hibernate框架技术,并通过分析这两种框架各自的优缺点,设计了整合Struts和Hibernate框架技术的E-WORK系统的J2EE架构。最后以系统中一个模块的实现为例说明系统开发过程。
At present, framework based on J2EE is a mainstream technology for developing web applications. The Struts framework is based on MVC(Model View Controller) design pattern which clearly separates control, business logic and presentation, and decouples the tiers. Hibernate provides lightweight object encapsulation for JDBC, and decreases the difficulty for developing the part of business model. J2EE which combines Struts and Hibernate is the best selection for web application development. On the background of developing an office system -E-WORK for a corporation, this paper mainly describes both the Struts and Hibernate framework technologies. By analyzing the advantages and disadvantages of both the Struts and Hibernate, we design a J2EE framework combines Struts and Hibernate, At last, we also show the development procedure by giving the realization of a module in this system.
出处
《微计算机信息》
北大核心
2006年第09X期184-187,共4页
Control & Automation
基金
山东省软科学项目支持(编号:B200408)