網(wǎng)頁設(shè)計外文翻譯_第1頁
網(wǎng)頁設(shè)計外文翻譯_第2頁
網(wǎng)頁設(shè)計外文翻譯_第3頁
網(wǎng)頁設(shè)計外文翻譯_第4頁
網(wǎng)頁設(shè)計外文翻譯_第5頁
已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

外文資料JavaServerPagesOverviewJavaServerPages(JSP)technologyenablesWebdevelopersanddesignerstorapidlydevelopandeasilymaintain,information-rich,dynamicWebpagesthatleverageexistingbusinesssystems.AspartoftheJavatechnologyfamily,JSPtechnologyenablesrapiddevelopmentofWeb-basedapplicationsthatareplatformindependent.JSPtechnologyseparatestheuserinterfacefromcontentgeneration,enablingdesignerstochangetheoverallpagelayoutwithoutalteringtheunderlyingdynamiccontent.BenefitsforDevelopersIfyouareaWebpagedeveloperordesignerwhoisfamiliarwithHTML,youcan:UseJSPtechnologywithouthavingtolearntheJavalanguage:YoucanuseJSPtechnologywithoutlearninghowtowriteJavascriplets.Althoughscriptletsarenolongerrequiredtogeneratedynamiccontent,theyarestillsupportedtoprovidebackwardcompatibility.ExtendtheJSPlanguage:JavataglibrarydevelopersanddesignerscanextendtheJSPlanguagewith"simpletaghandlers,"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.JSPpagessharethe"WriteOnce,RunAnywhere"advantagesofJavatechnology.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.Thisleavesyoufreetoselecta"bestofbreed"strategyforyourservers,platforms,andtools.

外文資料譯文Javaserverpages概況Javaserverpages(jsp)技術(shù),使Web開發(fā)人員和設(shè)計師可以快速開發(fā)和易于維護,利用現(xiàn)有的業(yè)務(wù)系統(tǒng)的動態(tài)網(wǎng)頁使信息豐富。作為在Java技術(shù)家族,JSP技術(shù)能夠迅速發(fā)展,基于網(wǎng)絡(luò)應(yīng)用程序的獨立平臺。JSP技術(shù)隔離用戶界面內(nèi)容的一代,使設(shè)計改變整個版面,而不改變基本的動態(tài)內(nèi)容。開發(fā)者的益處如果你是一個網(wǎng)頁開發(fā)或設(shè)計師所熟悉的HTML,你可以:使用JSP技術(shù),無須學(xué)習(xí)Java語言,你可以使用jsp技術(shù),而不學(xué)習(xí)如何寫javascriplets。雖然scriptlets不再需要產(chǎn)生一些動態(tài)內(nèi)容,但仍支持以提供向后兼容性擴展JSP語言:Java標(biāo)簽庫開發(fā)商和設(shè)計師可以擴展JSP語言與“簡單taghandlers”,這些都是用一種新的,更簡單和清潔的標(biāo)簽擴展API。這促使越來越多的插件,再用標(biāo)記庫可用,這反過來又減少了代碼需要,寫出強大的Web應(yīng)用。易寫和維護頁面:在JavaServerPages的標(biāo)準(zhǔn)標(biāo)簽庫(純)語言表達現(xiàn)已并入JSP技術(shù),并已支持升級功能。現(xiàn)在可以用表達語言來代替scriptlet詞句。JSP技術(shù)和JavaServletsJSP技術(shù)使用XML式的標(biāo)簽,產(chǎn)生概括的邏輯內(nèi)容頁。應(yīng)用邏輯可以存在于基于服務(wù)器資源(如JavaBeans組件結(jié)構(gòu))取用這些標(biāo)簽的頁面。任何及所有格式化(HTML或XML)的標(biāo)記直接傳遞回響應(yīng)頁面。通過把頁面邏輯從它的設(shè)計陳列和支持重用的基于組件的設(shè)計中分離出來,JSP技術(shù)使得它更快,比以往更加容易地建立Web應(yīng)用。JavaServerPages的技術(shù)是一種擴展的JavaServlet技術(shù)。Servlets是具有的平臺獨立性的服務(wù)器端模塊,能夠很好的適合Web服務(wù)器架構(gòu),可以用來以最小的擴展、維護和支持一個網(wǎng)絡(luò)服務(wù)器能力。不像其他的腳本語言,servlets涉及任何平臺的具體審議或修改;按要求并下載這些應(yīng)用部件,該系統(tǒng)的一部分也需要它們。JSP技術(shù)和servlets一起提供了一個有吸引力的替代其他類型的動態(tài)網(wǎng)頁腳本/編程。通過提出平臺的獨立性;增強性能;分離邏輯設(shè)計;易于管理;擴展進入企業(yè);而最重要的是易用。為建設(shè)交互式Web應(yīng)用,今天servlets是一種流行的選擇。第三方servlet容器對于Apache服務(wù)器、MicrosoftIIS和其他服務(wù)器是一樣適用的。servlet容器通常是一個網(wǎng)絡(luò)和應(yīng)用服務(wù)器的組成部分,如BEAweblogic應(yīng)用服務(wù)器、IBM的websphere、太陽JavaSystemweb服務(wù)器、SunJava系統(tǒng)應(yīng)用服務(wù)器等等。行業(yè)背景JSP的規(guī)格由SunMicrosystems公司的全行業(yè)與產(chǎn)業(yè)界領(lǐng)袖企業(yè)和軟件開發(fā)工具市場的產(chǎn)品。SUN使得jsp規(guī)格免費提供給開發(fā)社區(qū),其目標(biāo)是每一個網(wǎng)絡(luò)服務(wù)器和應(yīng)用服務(wù)器能支持JSP的接口。JSP頁面共享了Java技術(shù)"寫一次,到處運行"的優(yōu)勢。JSP技術(shù)的一個關(guān)鍵組成部分是Sun的在Java2平臺企業(yè)版上的高擴展架構(gòu)企業(yè)應(yīng)用系統(tǒng)。JSP技術(shù)的Javaee5平臺Javaee5的焦點是便于開發(fā)利用Java語言說明而推出的J2se5.0。Jsp2.1通過界定說明依賴加入Jsptaghandlers和背景的聽眾支持這一目標(biāo)的。Javaee5規(guī)格另一主要關(guān)切的問題是已調(diào)整了其webtier技術(shù),即Javaserverpages(Jsp)、JavaServerFaces(JSF)和JavaServerPages標(biāo)準(zhǔn)標(biāo)簽庫(JSTL)。這條路努力的結(jié)果一直是統(tǒng)一的表達語言(EL),它是語言表達定義的JSP2.0和JSF1.1的統(tǒng)一體。統(tǒng)一的EL是主要的附加關(guān)鍵,調(diào)整工作有:一個可插拔API為解決變量參照Java對象以及解決的性能來適用這些Java對象;支持延遲表達,這可能是評價一個taghandler時需要的,不像其表達式的同類,當(dāng)一頁需要被執(zhí)行和放棄的時候立即評價;支持出現(xiàn)在一任務(wù)運作的左手方面的lvalue表達,當(dāng)作為lvalue使用時,一架EL表達代表提到了一個數(shù)據(jù)結(jié)構(gòu),例如:一個JavaBeans的財產(chǎn),這是一些用戶輸入。統(tǒng)一的新EL是指在自己的規(guī)范文件,即隨著jsp2.1規(guī)范發(fā)表。多虧了統(tǒng)一EL,JSTLtags,如JSTLiterationtags,現(xiàn)在可以用JSF組成一個直觀的方式。Javaservlet技術(shù)的概況servlets是Java技術(shù)的選擇,以擴大和加強網(wǎng)絡(luò)服務(wù)器,servlets提供一個基于組件的平臺獨立的方法建立Web應(yīng)用,沒有CGI程式的局限性的。不像專有服務(wù)器擴展機制(如netscape服務(wù)器API或Apache模塊),servlets服務(wù)器的平臺是獨立的。這使得您可以服務(wù)器、平臺和工具自由選擇"最佳品種"的策略。Servlets連接JavaAPIs家族,包括JDBCAPI連接企業(yè)數(shù)據(jù)庫。Servlets還可以進入HTTP-specificcalls庫,并繼承所有成熟的JAVA語言好處,包括可移植性、可操作性、可重用性、可維護性。為建設(shè)交互式Web應(yīng)用,今天Servlets是一種流行的選擇,而第三方Servlet容器可以和Apache、MicrosoftIIS等服務(wù)器兼容。Servlet容器通常是網(wǎng)絡(luò)和應(yīng)用服務(wù)器的一個組成部分,如BEAweblogic應(yīng)用服務(wù)器、IBM的websphere、太陽JavaSystemweb服務(wù)器、SunJava系統(tǒng)應(yīng)用服務(wù)器等等。你也許會搜索JavaServerPages(JSP)技術(shù)的最新資料。其實,JSP技術(shù)是創(chuàng)造支持寫HTML和XML頁面的Servlet技術(shù)的延伸,它使人們更容易將靜態(tài)的模板數(shù)據(jù)與動態(tài)內(nèi)容連接起來。即使你很喜歡寫servlets,但是把調(diào)查JSP技術(shù)作為一種補充您現(xiàn)有的工作,也存在一些令人信服的其它理由。JavaBeansJavabeans技術(shù)是Java2平臺標(biāo)準(zhǔn)版(J2SE)的建筑構(gòu)件的。組件(JavaBeans等)是一種基于JavaBeans規(guī)范技術(shù)的可重用的軟件項目,你可以通過容易的開發(fā)和組裝去創(chuàng)造復(fù)雜的應(yīng)用。TheBeanBuilderTheBeanBuilder是一個應(yīng)用組件裝配機制顯示視覺結(jié)構(gòu)和應(yīng)用的簡單組件。HYPERLINK"/pr

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論