欢迎来到天天文库
浏览记录
ID:9806277
大小:350.50 KB
页数:15页
时间:2018-05-10
《外文文献-基于mvc的struts框架》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、毕业设计说明书英文文献及中文翻译2目录1StrutsFrameworkBasedonMVC12HibernateFrameworkBasedonORM32.1IntroductionofHibernate32.2PrincipleofHibernate43TheIntegrationofStrutsandHibernate53.1FlowofFramework63.2SystematicStructureoftheIntegrationFramework61基于MVC的Struts框架82基于ORM的Hibernate框架102.1Hibernate介绍102.2Hib
2、ernate标准113Struts和Hibernate的整合123.1框架的工作流程123.2整合框架的系统结构13II1StrutsFrameworkBasedonMVCInthetraditionalWebapplication,JavaServerPages(JSP)pagesareresponsibleforhandlingallthings,forexample,receivingrequests,executingbusinesslogics,choosingthenextpage.Thesecomplicatedthingsmayleadtochaosof
3、JSPpages’codesandbeharmfulfortheextensionandmaintenanceofpages.TheModel-View-Controller(MVC)modeseparatestheprogrammingcodesintothreedifferentareas,whichhassolvedtheaboveproblem.MVCcanrealizeJ2EEapplicationsystem'sstratificationandtheloosecouplingofthreelayersormultilayer,anditisarealiza
4、tionwayoforientingdynamiccontent.TheMVCmodedividesapplicationintothreecorecomponentsofModel,ViewandController.StrutsisarealizationofMVC.ItisanopensourceWebapplicationframeworkandusesServletandJSPmarksthatbelongtotheJ2EEnormasapartoftherealization.StrutsinheritsMVCcharacteristicsandrealiz
5、essomecorrespondingchangesandextensionaccordingtoJ2EEtraits.StrutsseparatesJavacodesofJSPbyJavaBeanandActionclasstobetheMVCmode,transmitsdataamongthethreepartitionsofModel,ViewandController,demonstratestheconnectionbetweenvariousclassesandJSPpagesbyconfigurationfilesfinallyanditintendsto
6、realizetheseparationofpresentationlayer,businesslayeranddatalayer.TheStrutsstructureisshowninFigure1.TheModelcontainsthebusinesslogicthatexchangesdatawithapersistencelayer.TheViewisinchargeofproducingwhatisdirectlyvisibletotheuser,e.g.webpages.TheControlleristhelayerthatreceivesrequestsf
7、romclients,determineswhatbusinesslogictakesplaceandwheretogonext.IntheStrutsframework,theModelusesJavaclassesforthebusinesslogic.TheViewcanbeimplementedwithJSPandtheTaglibofStruts.TheControllerisaJ2EEcomponentknownasServlet,morespecificallyanActionServletobject,whichdeter
此文档下载收益归作者所有