资源描述:
《网上商城系统毕业设计外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、毕业设计说明书英文文献及中文翻译班级:学号:姓名:学院:专业:指导教师:1StrutsFrameworkBasedonMVCInthetraditionalWebapplication,JavaServerPages(JSP)pagesareresponsibleforhandlingallthings,forexample,receivingrequests,executingbusinesslogics,choosingthenextpage.ThesecomplicatedthingsmayleadtochaosofJSPpages
2、’codesandbeharmfulfortheextensionandmaintenanceofpages.TheModel-View-Controller(MVC)modeseparatestheprogrammingcodesintothreedifferentareas,whichhassolvedtheaboveproblem.MVCcanrealizeJ2EEapplicationsystem'sstratificationandtheloosecouplingofthreelayersormultilayer,anditis
3、arealizationwayoforientingdynamiccontent.TheMVCmodedividesapplicationintothreecorecomponentsofModel,ViewandController.StrutsisarealizationofMVC.ItisanopensourceWebapplicationframeworkandusesServletandJSPmarksthatbelongtotheJ2EEnormasapartoftherealization.StrutsinheritsMVC
4、characteristicsandrealizessomecorrespondingchangesandextensionaccordingtoJ2EEtraits.StrutsseparatesJavacodesofJSPbyJavaBeanandActionclasstobetheMVCmode,transmitsdataamongthethreepartitionsofModel,ViewandController,demonstratestheconnectionbetweenvariousclassesandJSPpagesb
5、yconfigurationfilesfinallyanditintendstorealizetheseparationofpresentationlayer,businesslayeranddatalayer.TheStrutsstructureisshowninFigure1.TheModelcontainsthebusinesslogicthatexchangesdatawithapersistencelayer.TheViewisinchargeofproducingwhatisdirectlyvisibletotheuser,e
6、.g.webpages.TheControlleristhelayerthatreceivesrequestsfromclients,determineswhatbusinesslogictakesplaceandwheretogonext.IntheStrutsframework,theModelusesJavaclassesforthebusinesslogic.TheViewcanbeimplementedwithJSPandtheTaglibofStruts.TheControllerisaJ2EEcomponentknownas
7、Servlet,morespecificallyanActionServletobject,whichdetermineswhatorwhenlogicgetsexecutedandwherethecontrolshouldgetdirected.2HibernateFrameworkBasedonORMWorkingwithboththeobject-orientedsoftwareandtherelationaldatabaseisacomplicatedtaskwithJavaDatabaseConnectivity(JDBC)be
8、causethereismismatchbetweenhowdataisrepresentedinobjectsversusrelationaldatabase.SowithJDBC,deve