摘要
MVC是一种流行的软件设计模式,它把系统分为3个模块:模型(Model)、视图(View)和控制器(Controller),各个模块之间相互独立,因而减弱了业务逻辑接口和数据接口之间的耦合,提高了代码的可重用性和灵活性,便于组件式开发。Struts把MVC设计模式运用到Web应用中,它由一组相互协作的类、Servlet及JSPTagLibrary组成,基于Struts框架的Web应用程序基本上符合JSPModel2的设计标准,但是,JSP对XML的支持不佳。Stxx是Struts框架的一个延伸,在保持Struts已有功能的基础上增加了对XML和XSL的支持。文中介绍了Struts和Stxx框架,同时探讨了在线考试系统的设计思路,并运用Stxx框架实现了在线考试系统的试卷分发,突出了Stxx框架的优势。
MVC is one kind of popular software design pattern. It divides the system into 3 modules: Model,View and Controller. It is mutually independent between each module. So it weakened coupling between business logic interface and data interface. Struts bring MVC design pattern to bear on Web application. It is composed by a group of mutual coefficient class,Servlet and JSP Tag Library. Web application based on Struts framework conforms the design standard of JSP Model2. But, JSP is not good to support XML. The Stxx framework that extending Struts existing functionality to allow Action classes to return XML that will be transformed by technologies like XSL. This article introduced Struts and Stxx framework. Simultaneously has discussed the designing thinking of on-line exam system, and has realized paper distribution in on-line exam system using Stxx framework. It has highlighted Stxx framework superiority.
出处
《微机发展》
2005年第1期128-130,共3页
Microcomputer Development