资源描述:
《the pros and cons of struts, hibernate, and spring frameworks》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、TheprosandconsofStruts,Hibernate,andSpring3frameworksThestrutsframeworkhastheadvantagesofmodularity,flexibilityandreuse,whilesimplifyingthedevelopmentofMVCbasedwebapplications.Advantages:Struts,likemanyApacheprojectssuchasTomcatandTurbine,isopensourcesoftware,whichisoneofitsgreatadvant
2、ages.Enabledeveloperstolearnmoreabouttheirinternalimplementationmechanisms.Beyondthat,thebenefitsofStrutsareprimarilyfocusedontwoaspects:theTaglibandthepagenavigation.TheTaglibisataglibraryforStrutsthatisflexibleenoughtogreatlyimprovedevelopmentefficiency.Inaddition,asfarasthecurrentdo
3、mesticJSPdevelopersareconcerned,itisveryraretodevelopyourowntagsinadditiontothecommonlyusedtagsbroughtinbyJSP,andperhapsStrutsisagoodstartingpoint.Asforpagenavigation,Ithinkthat'sgoingtobeadevelopmentinthefuture,infact,tomakethecontextofthesystemclearer.Byusingaconfigurationfile,youcan
4、grasptheconnectionbetweenthepartsofthesystem,whichisofgreatbenefittolatermaintenance.Thisisespeciallytruewhenanotherdevelopertakesovertheproject.Inaddition,strutsisanindustry"standard"(manysuccessfulcases),richinlearningresources,andexcellentHTMLtagsDisadvantages:Taglibisoneoftheadvant
5、agesofStruts,butforbeginners,butneedaprocessofcontinuouslearning,canevendisruptyourwebpageinthehabitofwriting,but,whenyougetusedtoit,youwillfeelit'sreallygood.StrutssplittheControllerofMVCintothree,addingtothecomplexityofthesystemwhilegainingclarity.ActionFormsisnotusedforunittesting(S
6、trutsTestCasecanonlybeusedforintegration)Struts,likemanyApacheprojectssuchasTomcatandTurbine,isopensourcesoftware,whichisoneofitsgreatadvantages.Enabledeveloperstolearnmoreabouttheirinternalimplementationmechanisms.TheStrutsopensourceframeworkwascreatedtomakeiteasierfordeveloperstobuil
7、dWebapplicationsbasedonJavaservletsandJavaServerPages(JSP)technologies.TheStrutsframeworkprovidesaunifiedstandardframeworkfortheopen,whichallowsdeveloperstofocusmoreonthebusinesslogicoftheapplicationbyusingStrutsasafoundation.TheStrutsframeworkitselfisamodel-view-controller(MVC)imple