资源描述:
《外文文献基于MVC的Struts框架》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、毕业设计说明书英文文献及中文翻译目录1StrutsFrameworkBasedonMVC12HibernateFrameworkBasedonORM32.1IntroductionofHibernate32.2PrincipleofHibernate43TheIntegrationofStrutsandHibernate53.1FlowofFramework63.2SystematicStructureoftheIntegrationFramework61基于MVC的Struts框架82基于ORM的Hibernate框架102.1Hibernate介绍1
2、02.2Hibernate标准113Struts和Hibernate的整合123.1框架的工作流程123.2整合框架的系统结构131StrutsFrameworkBasedonMVCInthetraditionalWebapplication,JavaServerPages(JSP)pagesareresponsibleforhandlingallthings,forexample,receivingrequests,executingbusinesslogics,choosingthenextpage.Thesecomplicatedthingsmay
3、leadtochaosofJSPpages’codesandbeharmfulfortheextensionandmaintenanceofpages.TheModel-View-Controller(MVC)modeseparatestheprogrammingcodesintothreedifferentareas,whichhassolvedtheaboveproblem.MVCcanrealizeJ2EEapplicationsystem'sstratificationandtheloosecouplingofthreelayersormulti
4、layer,anditisarealizationwayoforientingdynamiccontent.TheMVCmodedividesapplicationintothreecorecomponentsofModel,ViewandController.StrutsisarealizationofMVC.ItisanopensourceWebapplicationframeworkandusesServletandJSPmarksthatbelongtotheJ2EEnormasapartoftherealization.Strutsinheri
5、tsMVCcharacteristicsandrealizessomecorrespondingchangesandextensionaccordingtoJ2EEtraits.StrutsseparatesJavacodesofJSPbyJavaBeanandActionclasstobetheMVCmode,transmitsdataamongthethreepartitionsofModel,ViewandController,demonstratestheconnectionbetweenvariousclassesandJSPpagesbyco
6、nfigurationfilesfinallyanditintendstorealizetheseparationofpresentationlayer,businesslayeranddatalayer.TheStrutsstructureisshowninFigure1.TheModelcontainsthebusinesslogicthatexchangesdatawithapersistencelayer.TheViewisinchargeofproducingwhatisdirectlyvisibletotheuser,e.g.webpages
7、.TheControlleristhelayerthatreceivesrequestsfromclients,determineswhatbusinesslogictakesplaceandwheretogonext.IntheStrutsframework,theModelusesJavaclassesforthebusinesslogic.TheViewcanbeimplementedwithJSPandtheTaglibofStruts.TheControllerisaJ2EEcomponentknownasServlet,morespecifi
8、callyanActionServletobject,whichdetermin