外文文献JSP发展历史中英文Word格式文档下载.docx
- 文档编号:22704349
- 上传时间:2023-02-05
- 格式:DOCX
- 页数:13
- 大小:28.51KB
外文文献JSP发展历史中英文Word格式文档下载.docx
《外文文献JSP发展历史中英文Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《外文文献JSP发展历史中英文Word格式文档下载.docx(13页珍藏版)》请在冰豆网上搜索。
Source:
Servlet&
JSP
TheJavaServerPages(JSP)isakindofaccordingtowebofthescriptplaitdistancetechnique,similarcarriesthescriptlanguageofJavaintheserveroftheNetscapecompanyofserver-sideJavaScript(SSJS)andtheActiveServerPages(ASP)oftheMicrosoft.JSPcomparestheSSJSandASPtohavebettercanexpandsex,anditisnomoreexclusivethananyfactoryorsomeoneparticularserverofWeb.ThoughthenormofJSPistobedrawupbySuncompanyof,anyfactorycancarryouttheJSPonownsystem.
TheAfterSunreleasetheJSP(theJavaServerPages)formally,thethiskindofnewWebapplicationdevelopmenttechniqueveryquicklycausedthepeople'
sconcern.JSPprovidedaspecialdevelopmentenvironmentfortheWebapplicationthatestablishesthehighdynamicstate.AccordingtotheSunparlance,theJSPcanadapttoincludetheApacheWebServer,IIS4.0onthemarketatinsideof85%serverproduct.
ThischapterwillintroducetherelatedknowledgeofJSPandDatabases,andJavaBeanrelatedcontents,isallcertainlyrougherintroductionamongthembasiccontents,sayperhapstoisaGuideonly,ifthereaderneedsthemoredetailedinformation,pleasingthebookofconsultthehomologousJSP.
1.1GENERALIZE
TheJSP(JavaServerPages)isfromthecompanyofSunMicrosystemsinitiate,themanycompaniestheparticipatetothebuildupthetogetheroftheakindtheofdynamicthestatewebthepagetechniquestandard,theithavetheitintheconstructiontheofthedynamicstatethewebpagethestrongbutthedonottheespeciallyofthefunction.JSPandthetechniqueofASPoftheMicrosoftareveryalike.BothallprovidetheabilitythatmixeswithacertainprocedurecodeandisexplainbythelanguageenginetocarryouttheprocedurecodeinthecodeofHTML.Underneathwearesimpleofcarryontheintroductiontoit.
JSPpagesaretranslatedintoservlets.So,fundamentally,anytaskJSPpagescanperformcouldalsobeaccomplishedbyservlets.However,thisunderlyingequivalencedoesnotmeanthatservletsandJSPpagesareequallyappropriateinallscenarios.Theissueisnotthepowerofthetechnology,itistheconvenience,productivity,andmaintainabilityofoneortheother.Afterall,anythingyoucandoonaparticularcomputerplatformintheJavaprogramminglanguageyoucouldalsodoinassemblylanguage.Butitstillmatterswhichyouchoose.
JSPprovidesthefollowingbenefitsoverservletsalone:
•ItiseasiertowriteandmaintaintheHTML.YourstaticcodeisordinaryHTML:
noextrabackslashes,nodoublequotes,andnolurkingJavasyntax.
•YoucanusestandardWeb-sitedevelopmenttools.EvenHTMLtoolsthatknownothingaboutJSPcanbeusedbecausetheysimplyignoretheJSPtags.
•Youcandivideupyourdevelopmentteam.TheJavaprogrammerscanworkonthedynamiccode.TheWebdeveloperscanconcentrateonthepresentationlayer.Onlargeprojects,thisdivisionisveryimportant.Dependingonthesizeofyourteamandthecomplexityofyourproject,youcanenforceaweakerorstrongerseparationbetweenthestaticHTMLandthedynamiccontent.
Now,thisdiscussionisnottosaythatyoushouldstopusingservletsanduseonlyJSPinstead.Bynomeans.Almostallprojectswilluseboth.Forsomerequestsinyourproject,youwilluseservlets.Forothers,youwilluseJSP.Forstillothers,youwillcombinethemwiththeMVCarchitecture.Youwanttheappropriatetoolforthejob,andservlets,bythemselves,donotcompleteyourtoolkit.
1.2SOURCEOFJSP
ThetechniqueofJSPofthecompanyofSun,makingthepageofWebdevelopthepersonnelcanusetheHTMLperhapsmarkingofXMLtodesigntoturntheendpagewithformat.UsetheperhapssmallscriptfuturelifeofmarkingofJSPbecomesthedynamicstateonthepagecontents.(thecontentschangesaccordingtotheclaimof)
TheJavaServletisatechnicalfoundationofJSP,andthelargeWebappliesthedevelopmentoftheproceduretoneedtheJavaServlettomatchwiththeJSPandthencancomplete,thisnameofServletcomesfromtheApplet,thelocaltranslationmethodofnowisalotof,thisbookinordernottomisconstruction,decidethedirectadoptionServletbutdon'
tdoanytranslation,ifreaderwouldliketo,cancallitas"
smallserviceprocedure"
.TheServletissimilartotraditionalCGI,ISAPI,NSAPIetc.Webproceduredevelopmentthefunctionofthetoolinfact,atusetheJavaServlethereafter,thecustomerneednotuseagainthelowlymethodofCGIofefficiency,alsoneednotuseonlytheabilitycometobornpageofWebofdynamicstateinthemethodofAPIthatacertainfixedWebserverterracecirculate.ManyserversofWeballsupporttheServlet,evennotsupporttheServletserverofWebdirectlyandcanalsopasstheadditionalappliedserverandthemoldpiecestosupporttheServlet.Receivebenefitinthecharacteristic(典型的)oftheJavacross-platform,theServletisalsoaterrace(平台)irrelevant,actually,aslongasmatchthenormofJavaServlet,theServletiscompletetohavenothingtodowithterraceandistohavenothingtodowithserverofWeb.BecausetheJavaServletisinternaltoprovidetheservicebythelinedistance,neednotstartaprogresstotheeachclaims,andmakeuseofthemulti-threadingmechanismcanatthesametimeforseveralclaimservice,thereforetheefficiencyofJavaServletisveryhigh.
ButtheJavaServletalsoisnottohasnoweakness,similartotraditionalCGI,ISAPI,theNSAPImethod,theJavaServletistomakeuseofoutputtheHTMLlanguagesentencetocarryoutthedynamicstatewebpageof,ifdevelopthewholewebsitewiththeJavaServlet,theintegration(集成)processofthedynamicstatepartandthestaticstatepageisanevil-forebodingdreamsimply.ForsolvingthiskindofweaknessoftheJavaServlet,theSUNreleasedtheJSP.
Anumberofyearsago,Martywasinvitedtoattendasmall20-personindustry(产业)roundtablediscussiononsoftwaretechnology.SittingintheseatnexttoMartywasJamesGosling,inventor(发明)oftheJavaprogramminglanguage.Sittingseveralseatsawaywasahigh-levelmanagerfromaverylargesoftwarecompanyinRedmond,Washington.Duringthediscussion,themoderatorbroughtupthesubjectofJini,whichatthattimewasanewJavatechnology.Themoderatoraskedthemanagerwhathethoughtofit,andthemanagerrespondedthatitwastooearlytotell,butthatitseemedtobeanexcellentidea.Hewentontosaythattheywouldkeepaneyeonit,andifitseemedtobecatchingon,theywouldfollowhiscompany'
susual"
embrace(信奉)andextend"
strategy(战略).Atthispoint,Goslinglightheartedlyinterjected"
Youmeandisgrace(耻辱)anddistend(使扩张)."
Now,thegrievance(不满)thatGoslingwasairing(风干;
通风)wasthathefeltthatthiscompanywouldtaketechnologyfromothercompaniesandsuborn(收买)itfortheirownpurposes.Butguess(认为,猜测)what?
Theshoeisontheotherfoothere.TheJavacommunity(社区,团体)didnotinvent(发明,创造)theideaofdesigningpagesasamixture(混合)ofstaticHTMLanddynamiccodemarked(标记)withspecialtags(标签).Forexample,ColdFusiondidityearsearlier.EvenASP(aproductfromtheverysoftwarecompanyoftheaforementionedmanager)popularizedthisapproach(方法)beforeJSPcamealonganddecidedtojumponthebandwagon(流行).Infact,JSPnotonlyadoptedthegeneral(普通的)idea,itevenusedmanyofthesamespecialtagsasASPdid.
TheJSPisanestablishment(确定,制定)atthemodelofJavaservletsonoftheexpressionlayer(层)technique(技术),itmakesplait(编)writetheHTMLtobecomemoresimple.BeliketheSSJS,italsoallows(允许)youcarrythestaticstateHTMLcontentsandserversthescript(脚本)mixtoputtogethertheborndynamicstateexportation(出口).JSPthescriptlanguagethattheJavaisthetacit(缄默的,不言而喻的)approval(认可),however,beliketheASPandcanuseotherlanguages(suchasJavaScriptandVBScript),thenormofJSPalsoallowstouseotherlanguages.
1.3JSPCHARACTERISTICS
Isaserviceaccordingtothescriptlanguageinsomeonelanguageofthestaturessystemthiskindofdiscuss(论述),theJSPshouldbeseemakeisakindofscriptlanguage.However,beakindofscriptlanguage,theJSPseemedtobetoostrongagain,almostcanuseallJavasintheJSP.
Beakindofaccordingtotextoriginally(最初)of,takemanifestation(表现)asthecentraldevelopmenttechnique,theJSPprovidedalladvantagesoftheJavaServlet,and,whencombinewithaJavaBeanstogether,providingakindofmakecontentsandmanifestationthatsimplewaythatlogic(逻辑)separate.Separatethecontentsandadvantageoflogicalmanifestationsis,thepersonnel(人员的)whorenews(更新)thepageexternal(外部的)appearance(外观)neednotknowthecodeofJava,andrenewtheJavaBeanspersonnelalsoneednotbedesignthewebpageofexpert(熟练的,专家)inhand,canusetotakethepageofJavaBeansJSPtodefinethetemplate(模板)ofWeb,tobuildupaformhavethealikeexternalappearanceofthewebsitethatpageconstitute(组成).JavaBeanscompletes(完成)thedatatoprovide,havingnocodeofJavainthetemplatethus(因此),thismeansthatthesetemplatescanbewrittenthepersonnelbyaHTMLplait(编)tosupport.Certainly,canalsomakeuseoftheJavaServlettocontrolthelogicofthewebsite,adjust(调整)throughtheJavaServlettousethewayofthedocumentofJSPtoseparatewebsiteoflogicandcontents.
Generallyspeaking,inactual(真实的,目前的)engine(引擎)ofJSP,thepageofJSPistheeditandtranslate(翻译,转化)typewhilecarryout,notexplainthetypeof.Explainthedynamicstatewebpagedevelopmenttoolofthetype,suchasASP,PHP3etc.,becausespeedetc.reason,havealreadycan'
tsatisfy(令人满意的)currentthelargeelectronic
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 文献 JSP 发展 历史 中英文