首页 | 官方网站   微博 | 高级检索  
     

Struts框架控制器及其进化的模式分析
引用本文:张英奇,郭希娟,张毅,张利辉.Struts框架控制器及其进化的模式分析[J].计算机工程与设计,2006,27(22):4322-4324.
作者姓名:张英奇  郭希娟  张毅  张利辉
作者单位:1. 燕山大学,计算机科学与技术系,河北,秦皇岛,066004;中国环境管理干部学院计算机科学与技术系,河北,秦皇岛,066004
2. 燕山大学,计算机科学与技术系,河北,秦皇岛,066004
3. 中国环境管理干部学院计算机科学与技术系,河北,秦皇岛,066004
摘    要:Struts框架为Web应用提供了预备的软件架构和相关的软件包,它的实现源代码使用设计模式以满足框架本身的复用性要求。简要介绍了Struts框架如何实现MVC模式,通过分析Struts框架控制器源码所使用的经典设计模式和J2EE模式阐明了Struts框架的工作原理及设计思想。针对该框架只能支持HTML格式终端数据的问题,讨论了如何使用具体设计模式将其控制器进化为以XML格式数据为应用处理核心来屏蔽各种客户终端。

关 键 词:框架  MVC模式  设计模式  J2EE模式  可扩展标记语言
文章编号:1000-7024(2006)22-4322-03
收稿时间:2005-10-23
修稿时间:2005-10-23

Analysis of patterns used in struts controller and its improvement
ZHANG Ying-qi,GUO Xi-juan,ZHANG Yi,ZHANG Li-hui.Analysis of patterns used in struts controller and its improvement[J].Computer Engineering and Design,2006,27(22):4322-4324.
Authors:ZHANG Ying-qi  GUO Xi-juan  ZHANG Yi  ZHANG Li-hui
Affiliation:1. Department of Computer Science and Teconology, Yanshan Univercity, Qinhuangdao 066004, China; 2. Department of Computer Science and Teconology, Enviromental Management College of China, Qinhuangdao 066004, China
Abstract:The struts framework supplied a prepared software architecture and software packages for web application. Its source code is implemented using design patterns to meet the demand of software reuse, its principle and design idea are illuminated by analyzing the classical design patterns and J2EE patterns used in the framework controller after the MVC pattern is introduced. According to the request of supplying more data formats apart from HTML, how to improve the framework controller is debated by using design patterns to handle XML data and fit other kinds of client.
Keywords:Struts
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号