资源描述:
《外文文献-struts——mvc 的一种开放源码实现》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、毕业设计外文文献原文及译文Struts——anopen-sourceMVCimplementationStruts——MVC的一种开放源码实现电子与计算机科学技术系学生姓名:学号:网络工程系别:专业:指导教师:2015年5月中北大学信息商务学院2015届毕业设计外文文献原文及译文Struts——anopen-sourceMVCimplementationThisarticleintroducesStruts,aModel-View-ControllerimplementationthatusesServletsandJa
2、vaServerPages(JSP)technology.StrutscanhelpyoucontrolchangeinyourWebprojectandpromotespecialization.EvenifyouneverimplementasystemwithStruts,youmaygetsomeideasforyourfutureServletsandJSPpageimplementation.IntroductionKidsingradeschoolputHTMLpagesontheInternet.Howe
3、ver,thereisamonumentaldifferencebetweenagradeschoolpageandaprofessionallydevelopedWebsite.Thepagedesigner(orHTMLdeveloper)mustunderstandcolors,thecustomer,productflow,pagelayout,browsercompatibility,imagecreation,JavaScript,andmore.Puttingagreatlookingsitetogethe
4、rtakesalotofwork,andmostJavadevelopersaremoreinterestedincreatingagreatlookingobjectinterfacethanauserinterface.JavaServerPages(JSP)technologyprovidesthegluebetweenthepagedesignerandtheJavadeveloper.Ifyouhaveworkedonalarge-scaleWebapplication,youunderstandtheterm
5、change.Model-View-Controller(MVC)isadesignpatternputtogethertohelpcontrolchange.MVCdecouplesinterfacefrombusinesslogicanddata.StrutsisanMVCimplementationthatusesServlets2.2andJSP1.1tags,fromtheJ2EEspecifications,aspartoftheimplementation.Youmayneverimplementasyst
6、emwithStruts,butlookingatStrutsmaygiveyousomeideasonyourfutureServletsandJSPimplementations.Model-View-Controller(MVC)JSPtagssolvedonlypartofourproblem.Westillhaveissueswithvalidation,flowcontrol,andupdatingthestateoftheapplication.ThisiswhereMVCcomestotherescue.
7、MVChelpsresolvesomeoftheissueswiththesinglemoduleapproachbydividingtheproblemintothreecategories:第19页共6页中北大学信息商务学院2015届毕业设计外文文献原文及译文ModelThemodelcontainsthecoreoftheapplication'sfunctionality.Themodelencapsulatesthestateoftheapplication.Sometimestheonlyfunctional
8、ityitcontainsisstate.Itknowsnothingaboutthevieworcontroller.ViewTheviewprovidesthepresentationofthemodel.Itisthelookoftheapplication.Theviewcanaccessthemodelge