1 / 54
文档名称:

关于Struts2框架的应用研究.pdf

格式:pdf   页数:54页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

关于Struts2框架的应用研究.pdf

上传人:511709291 2016/5/20 文件大小:0 KB

下载得到文件列表

关于Struts2框架的应用研究.pdf

相关文档

文档介绍

文档介绍:湖北工业大学硕士学位论文摘要随着计算机技术突飞猛进的发展,越来越多的企业对企业信息系统要求越来越高。软件开发者不断地研究比较优越的系统。框架成为一个系统的坚实砥柱, 所以选择优秀的框架是研发者一直深思和关注的问题。本文通过中国第一冶金建设公司的党务管理系统的需求分析,结构设计,模块介绍来引出采用框架作为软件开发的设计方法研究。介绍几种比较实用的框架。重点介绍Struts2是一个比较新的框架,对L匕Strutsl框架在党务系统中使用的不足之处:代码严重依赖ServletAPI,核心配置文件庞大,表示层单一。得出最合适和最有效的开发框架为Struts2。接着,介绍Struts2框架的组件技术:控制器(核心控制器)、业务控制器、模型组件和视图组件。核心控制器组SenrletDispatcher是个***,它对所有用户请求进行拦截,并且调用对应的处理器(Action):i挂行处理请求。业务控制器相当于一个映射机制,在处理服务请求时候,通过返回的逻辑视图名对应到其物理视图名,即在浏览器上显示的地址。归纳当一个Action中包含多个用户处理请求方法时的三种处理办法。模型组件是被业务控制器调用去处理响应的请求。视图组件变得更加丰富多彩,不再局限于使用JSP矛n静态的HTML文件显示给用户。在了解组件的作用的前提下,将框架运用到角色管理的模块中,结合相应代码论述该模块的具体实现过程。然后,设计出整个系统的模型框架。最后,将Struts2应用的一般化,结合它在一般系统中的操作流程和具体设计步, 提炼出在使用Struts2框架时候的注意点,为以后的使用提供参考和帮助。最终说明该框架的在代码方面的复用特点。结合使用Struts2框架的具体实践得出几点体会。实践表明,通过Struts2框架, 提高了系统的可维护性,可扩展性和组件的可复用性。关键词:框架,JB框架,Strutsl,Struts2,组件湖北工业大学硕士学位论文一——I IIIII_—_-I_■蔓_曼蔓 Abstract With therapid development puter technology,more andmore enterprises’ requirements to business information systems are more and more developers continue tostudy as asolidmainstay in a system,SO choice of anexcellent framework hasbeen anissue fordevelopers toponder over andpay more attention Inorder todescribe framework tobethesoftware development,we make description ofChina pany Party mission management system’S requirement analysis。structure design and we introduce several frameworks,we emphasize on thatStruts2is anewframework,Make acompare tothat using strutslframework intheParty mission management system hasseveral defects: code SO server todepend on theServle讼PI。core files are SO large,view flOW is too simple,脆find themost appropriate andeffectiveframework fordevelopment isStruts SecOndly'introduce the technology of Struts 2 framework’ponents: Controller(coreController),Business Controller, ponent and act as all interceptor,it intercepts allusers’requests and callthecorresponding processor(Action)to dealwith Control