Abstract:
Model realization of Struts have some problems, such as complex JDBC connecting to database, high coupling between layers and difficult code maintenance, et al. Aiming at these problems, this paper presents a Web application development scheme based on Struts and Hibernate. It really achieves the loose coupling between layers and easy maintenance, reduces the difficulty of development of business model. Through part of development codes and running window of student management system, it explains the process of integration and proves the feasibility of integrated solutions.
Key words:
Struts framework,
Hibernate framework,
Object Relational Mapping(ORM),
logic control
摘要: Struts框架在模型部分的实现存在JDBC连接数据库复杂、层间高耦合和难维护等问题。为此,提出一种整合Struts和Hibernate的Web应用开发方案,可实现层间的松散耦合和易维护,降低业务模型开发难度。通过学生管理系统开发实例的部分代码和运行界面说明该方案的整合应用过程,并验证其可行性。
关键词:
Struts框架,
Hibernate框架,
对象关系映射,
逻辑控制
CLC Number:
WANG Hai-Chao, GU Zong-Pu. Web Application Development Based on Struts and Hibernate[J]. Computer Engineering, 2011, 37(9): 112-114.
王海涛, 贾宗璞. 基于Struts和Hibernate的Web应用开发[J]. 计算机工程, 2011, 37(9): 112-114.