节点文献

使用WebControl技术扩展Struts框架

Enhance Struts Framework Using WebControl

【作者】 周杰

【导师】 翁惠玉;

【作者基本信息】 上海交通大学 , 软件工程, 2006, 硕士

【摘要】 Struts是一个广泛使用的开源的web应用程序框架,它帮助程序开发者更快更简单地创建web应用程序。作为MVC模式的经典实现,Struts的应用分三层,控制器层,模型层和视图层。在视图层,Struts依赖于JSP和自定义标签库。基于HTML和内置类脚本语言的开发方式使得采用Struts的Web应用在视图层的维护变得困难。当前对Struts视图层的研究多集中于采用xml和xslt技术,由于缺少一个好的视图层模型和xslt技术的缺陷,这方面的研究往往缺少实用性。本文在对Struts进行深入研究的基础上,对视图层进行了完整的xml建模,然后利用Digester技术,实现了强大的WEB生成器WebControl。进一步,本文成功地利用WebControl技术对Struts进行扩展,不仅将Struts视图层的开发改进成为xml驱动的模式,而且从视图层的JSP、客户端验证、ActionForm等方面全方位地简化了Struts模型和开发流程。随后本文将WebControl+Struts技术应用在惠普与新加坡电信合作的大型电信平台Promis中,并获得了成功。在实践中证明了该技术的实用性和相对于其他Struts视图层扩展框架的优势。

【Abstract】 Struts is a popular opensource web framework. Struts can help developers build web applications quickly. Being the famous implemention of MVC patters, the Struts framework can be divided into 3 layers, the controller, the model, and the view. Struts relies on JSP and Taglibs on the view layer. The architechture based on HTML and embedded scripts make struts applications difficult to maintain when requirement are given to modify the appearance of the web site which is a main lack of the framework. The current research of the Struts View Layer is focused on using xml and xslt technology. With a limited model and the lack of the xslt, the research got limited success and is not practical in the business.The thesis is based on the research of the entire struts framework. First, it provides an entire new model of WEB page and its components using xml. Then, with the Digester technology, it designs and implements a powerful WEB Generator -- WebControl. The third job which the thesis finished is to extend and improve the current Struts Framework. It simplifies the design and the development of JSP, client side validation and usage of actionform beans. The WebControl+Struts technology has been used on a great telecom project Promis which was cooperated by HP and Singtel. The practice has proved that WebControl+Struts are more efficient and applicable when developing large-scale web applications. A detail comparision has also been given in the end of the paper to shown the advantage of Webcontrol.

【关键词】 框架strutswebControldigesterxml
【Key words】 frameworkstrutswebControldigesterxml
  • 【分类号】TP311.10
  • 【下载频次】55
节点文献中: