网页设计外文翻译

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

外文资料JavaServerPagesOverviewJavaServerPages(JSP)technologyenablesWebdevelopersanddesignerstorapidlydevelopandeasilymaintain,information-rich,dynamicWebpagesthatleverageexistingbusinesssystems.AspartoftheJavatechnologyfamily,JSPtechnologyenablesrapiddevelopmentofWeb-basedapplicationsthatareplatformindependent.JSPtechnologyseparatestheuserinterfacefromcontentgeneration,enablingdesignerstochangetheoverallpagelayoutwithoutalteringtheunderlyingdynamiccontent.BenefitsforDevelopersIfyouareaWebpagedeveloperordesignerwhoisfamiliarwithHTML,youcan:UseJSPtechnologywithouthavingtolearntheJavalanguage:YoucanuseJSPtechnologywithoutlearninghowtowriteJavascriplets.Althoughscriptletsarenolongerrequiredtogeneratedynamiccontent,theyarestillsupportedtoprovidebackwardcompatibility.ExtendtheJSPlanguage:JavataglibrarydevelopersanddesignerscanextendtheJSPlanguagewithsimpletaghandlers,whichutilizeanew,muchsimplerandcleaner,tagextensionAPI.Thisspursthegrowingnumberofpluggable,reusabletaglibrariesavailable,whichinturnreducestheamountofcodeneededtowritepowerfulWebapplications.Easilywriteandmaintainpages:TheJavaServerPagesStandardTagLibrary(JSTL)expressionlanguageisnowintegratedintoJSPtechnologyandhasbeenupgradedtosupportfunctions.Theexpressionlanguagecannowbeusedinsteadofscriptletexpressions.JSPTechnologyandJavaServletsJSPtechnologyusesXML-liketagsthatencapsulatethelogicthatgeneratesthecontentforthepage.Theapplicationlogiccanresideinserver-basedresources(suchasJavaBeanscomponentarchitecture)thatthepageaccesseswiththesetags.Anyandallformatting(HTMLorXML)tagsarepasseddirectlybacktotheresponsepage.Byseparatingthepagelogicfromitsdesignanddisplayandsupportingareusablecomponent-baseddesign,JSPtechnologymakesitfasterandeasierthanevertobuildWeb-basedapplications.JavaServerPagestechnologyisanextensionoftheJavaServlettechnology.Servletsareplatform-independent,server-sidemodulesthatfitseamlesslyintoaWebserverframeworkandcanbeusedtoextendthecapabilitiesofaWebserverwithminimaloverhead,maintenance,andsupport.Unlikeotherscriptinglanguages,servletsinvolvenoplatform-specificconsiderationormodifications;theyareapplicationcomponentsthataredownloaded,ondemand,tothepartofthesystemthatneedsthem.Together,JSPtechnologyandservletsprovideanattractivealternativetoothertypesofdynamicWebscripting/programmingbyoffering:platformindependence;enhancedperformance;separationoflogicfromdisplay;easeofadministration;extensibilityintotheenterprise;and,mostimportantly,easeofuse.TodayservletsareapopularchoiceforbuildinginteractiveWebapplications.Third-partyservletcontainersareavailableforApacheWebServer,MicrosoftIIS,andothers.ServletcontainersareusuallyacomponentofWebandapplicationservers,suchasBEAWebLogicApplicationServer,IBMWebSphere,SunJavaSystemWebServer,SunJavaSystemApplicationServer,andothers.CommunityBackgroundTheJSPspecificationistheproductofindustry-widecollaborationwithindustryleadersintheenterprisesoftwareandtoolsmarkets,ledbySunMicrosystems.SunhasmadetheJSPspecificationfreelyavailabletothedevelopercommunity,withthegoalthateveryWebserverandapplicationserverwillsupporttheJSPinterface.JSPpagessharetheWriteOnce,RunAnywhereadvantagesofJavatechnology.JSPtechnologyisakeycomponentintheJava2Platform,EnterpriseEdition,Sun'shighlyscalablearchitectureforenterpriseapplications.JSPTechnologyintheJavaEE5PlatformThefocusofJavaEE5hasbeeneaseofdevelopmentbymakinguseofJavalanguageannotationsthatwereintroducedbyJ2SE5.0.JSP2.1supportsthisgoalbydefiningannotationsfordependencyinjectiononJSPtaghandlersandcontextlisteners.AnotherkeyconcernoftheJavaEE5specificationhasbeenthealignmentofitswebtiertechnologies,namelyJavaServerPages(JSP),JavaServerFaces(JSF),andJavaServerPagesStandardTagLibrary(JSTL).TheoutcomeofthisalignmentefforthasbeentheUnifiedExpressionLanguage(EL),whichintegratestheexpressionlanguagesdefinedbyJSP2.0andJSF1.1.ThemainkeyadditionstotheUnifiedELthatcameoutoftbealignmentworkhavebeen:ApluggableAPIforresolvingvariablereferencesintoJavaobjectsandforresolvingthepropertiesappliedtotheseJavaobjects,Supportfordeferredexpressions,whichmaybeevaluatedbyataghandlerwhenneeded,unliketheirregularexpressioncounterparts,whichgetevaluatedimmediatelywhenapageisexecutedandrendered,andSupportforlvalueexpression,whichappearonthelefthandsideofanassignmentoperation.Whenusedasanlvalue,anELexpressionrepresentsareferencetoadatastructure,forexample:aJavaBeansproperty,thatisassignedsomeuserinput.ThenewUnifiedELisdefinedinitsownspecificationdocument,whichisdeliveredalongwiththeJSP2.1specification.ThankstotheUnifiedEL,JSTLtags,suchastheJSTLiterationtags,cannowbeusedwithJSFcomponentsinanintuitiveway.JavaServletTechnologyOverviewServletsaretheJavaplatformtechnologyofchoiceforextendingandenhancingWebservers.Servletsprovideacomponent-based,platform-independentmethodforbuildingWeb-basedapplications,withouttheperformancelimitationsofCGIprograms.Andunlikeproprietaryserverextensionmechanisms(suchastheNetscapeServerAPIorApachemodules),servletsareserver-andplatform-independent.Thisleavesyoufreetoselectabestofbreeds

1 / 7
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功