首页 | 本学科首页   官方微博 | 高级检索  
     

基于Struts的Web系统中设计模式的应用
引用本文:张义轩,李实秋. 基于Struts的Web系统中设计模式的应用[J]. 信息技术, 2007, 31(5): 175-177
作者姓名:张义轩  李实秋
作者单位:重庆邮电大学通信与信息工程学院,重庆,400065
摘    要:Struts框架方便了中小型Web程序的开发。在Struts框架下应用Business Proxy,DAO等模式,实现了Web系统中表现层、逻辑层、数据持久层之间的松耦合,不仅使业务逻辑更加清晰,还使系统具有结构合理,易于开发、复用和维护的特点。结合项目实例对Struts的原理进行了分析,重点介绍了工厂方法,Business Proxy,DAO等模式的特点及基本构造,并对这些模式在实际应用中遇到的问题提出了具体的解决办法。

关 键 词:Struts设计模式  工厂方法
文章编号:1009-2552(2007)05-0175-03
修稿时间:2006-10-16

Application of design patterns in Web system based on Struts framework
ZHANG Yi-xuan,LI Shi-qiu. Application of design patterns in Web system based on Struts framework[J]. Information Technology, 2007, 31(5): 175-177
Authors:ZHANG Yi-xuan  LI Shi-qiu
Affiliation:Communication and Information Engineering College, Chongqing University of Posts and Telecommunications, Chongqing 400065, China
Abstract:Struts framework simplifies the development of the Web applications. Based on this frame, adopting appropriate design patterns like Business Proxy, DAO etc, it decouples the business object state transition logic from the business logic, can not only make the business logic clearly, but also make the system easy to develop, reuse and maintain. This paper firstly presents a through analysis of the principle of Struts, then uses an real application as an example to depict the structure and characters of the factory method, Business Proxy, DAO. Some solutions in use of these patterns are related.
Keywords:Business Proxy  DAO
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号