JSP技术英文简介

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

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

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

资源描述

IntroductionofJSPTechnologyJavaServerPagesTM(jsp(SUNenterpriseapplicationofchoice))technologyforthecreationofdisplaycontentdynamicallygeneratedWebpageprovidesasimpleandrapidmethod.jsp(SUNenterpriseapplicationofchoice)technologyisdesignedtoenablestructure-basedWebapplicationsmoreeasilyandfaster,andcantheseapplicationswithavarietyofWebservers,applicationservers,browsers,anddevelopmenttoolstoworktogether.Hereprovidesajsp(SUNenterpriseapplicationofchoice)technologyoverview,describesthebackgroundofitsdevelopment,aswellastheoverallobjectiveofthistechnology.Atthesametime,asimpleexample,alsodescribesaJavaTMtechnology-basedkeycomponentofthepage.WebapplicationdevelopmentofJavaServerPagestechnologyWaysInthedevelopmentofjsp(SUNenterpriseapplicationofchoice)specificationprocess,SunMicrosystems(SunMicrosystemsInc.)AndmanymajorWebservers,applicationserversanddevelopmenttoolsproviders,aswellasavarietyofexperienceddevelopmentgroupstocooperate.Theresultisfoundapageforapplicationsanddeveloperstobalancetheportabilityandeaseofuseofdevelopmentmethodologies.WillgenerateanddisplaythecontentsoftheseparationUsingjsptechnology,WebpagedeveloperscanuseHTMLorxmllogotodesignandformattingthefinalpage.Jsplogoortheuseofboundfeetwouldhavetogeneratedynamiccontentonthepage.Thelogic-generatedcontenthasbeenpackagedinalogoandJavaBeanscomponentsandtiedupinasmallscript,allthescriptsintheserver-siderun.IfthecorelogicwasencapsulatedinthelogoandBeans,thenotherpeople,suchasmanagementandWebpagedesigners,caneditandusejsppages,withoutaffectingthegenerationofcontent.Theserverside,jspengineexplainedjsplogoandsmallscripttogeneratetherequestedcontent(forexample,byaccessingJavaBeanscomponents,theuseoftechnologyJDBCTMaccessthedatabase,orincludefile),andtheresultstoHTML(orxml)pageoftheformsentbacktothebrowser.Thishelpstheauthortoprotecttheircode,andensurethatanyHTML-basedWebbrowsercompletelyavailability.EmphasisonreusablecomponentsJsppagereliesonthevastmajorityofreusable,cross-platformcomponents(JavaBeansorEnterpriseJavaBeansTMcomponents)toimplementtherequirementsofapplicationsmorecomplextreatment.Developerstobeabletoshareandexchangecomponentstoperformcommonoperations,ormakethesecomponentsmoreuserorclientgroupstouse.Component-basedapproachtoacceleratetheoveralldevelopmentprocess,andmakeavarietyoforganizationsintheirexistingskillsandtooptimizetheresultsofdevelopmenteffortsinthebalance.UsedtosimplifypagedevelopmentlogoWebpagedevelopersarenotfamiliarwiththescriptinglanguageoftheprogrammer.JavaServerPagetechnologypackagesanumberoffunctions,whichareinusewiththejsp-relatedxmllogoindynamiccontentgenerationneeds.JsplogostandardscanaccessandinstantiateJavaBeanscomponents,setorretrievecomponentsofproperty,downloadApplet,andimplementationbyothermeansmoredifficulttoencodeandtime-consumingfunction.Throughthedevelopmentofcustomizedlogoslibrary,jsptechnologycanbeextended.Infuture,third-partydevelopersandotherpersonnelforcommonlyusedfeaturestocreateyourown2logolibrary.ThisallowsWebpagedeveloperscanusefamiliartoolsandthesamelogoastheimplementationofspecificfunctionsofcomponentstowork.jsptechnologyeasilyintegratedintoavarietyofapplicationsarchitecture,totakeadvantageofexistingtoolsandtechniques,andexpandedtobeabletosupportenterprise-classdistributedapplications.TheuseofJavatechnologyaspartofthefamily,aswellastheJava2(EnterpriseArchitecture)isanintegralpartof,jsptechnologycansupportthehighlycomplexWeb-basedapplications.Jsppagebecauseofthebuilt-scriptinglanguageisbasedontheJavaprogramminglanguage,andallthejsppagesarecompiledtobecomeJavaServlet,jsppageonwithallthebenefitsofJavatechnology,includingrobuststoragemanagementandsecurity.AspartofJavaPlatform,jsphasaJavaprogramminglanguage,writeonce,runeverywherecharacteristics.Asmoreandmoresupplierswillbeaddedtojspsupporttheirproducts,youcanuseyourownchoiceofserverandtools,changetools,ortheserverdoesnotaffectthecurrentapplication.WhenusedwithJava2Platform,EnterpriseEdition(J2EE)andEnterpriseJavaBeantechnologyintegration,jsppagewillprovideenterprise-classscalabilityandperformance,whichisessentialforthedeploymentofvirtualenterpriseWeb-basedapplicationsisessential.jspinstructionsjsppageusingjspdirectinstructiondeliveredtothejspengine.Thisincludes:jsppagedirectivesrelatedtoinformationtransmissionpage,suchasbufferandthreadinformationorwrongtreatment.Languageinstructionsspecifiedscriptinglanguage,aswellasalltheexpansion.Containsinstructions(intheaboveexampleshaveshown)canbeusedinthepagethatcontainsanexternaldocument.Agoodexampleisthecopyrightorcompanyinformationdocumentsdocuments-inacentralizedlocationtopreservethedocumentandthepagecontainsmorethaninalljsppageshouldbeeasiertoupdate.Ofcourse,beingcontainedinadocumentmayalsobeanotherjspfile.Logolibraryinstructionspointedoutthatthepagecancallaclientlogolibrary.jsplogoWilldealwiththeoverwhelmingmajorityofjspandjsprelatedxmlbasedonthecompletionofthelogo.jsp1.0containssubstantialstandardlogo,whichidentifiesasacoreidentity,including:jsp:useBeanstatementoftheidentityofacomponentinstanceoftheuseofJavaBea

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

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

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

×
保存成功