外文文献及中文翻译Word文档格式.docx
- 文档编号:22671186
- 上传时间:2023-02-05
- 格式:DOCX
- 页数:14
- 大小:29.29KB
外文文献及中文翻译Word文档格式.docx
《外文文献及中文翻译Word文档格式.docx》由会员分享,可在线阅读,更多相关《外文文献及中文翻译Word文档格式.docx(14页珍藏版)》请在冰豆网上搜索。
学号:
软件工程
学院:
唐利忠李华玲
专业:
指导教师:
2014年6月
JSPTechnologyConspectusAndSpecialties
TheJSP(JavaServermix)technologyisusedbytheSunmicrosystemissuedbythecompanytodevelopdynamicWebapplicationtechnology.Withitseasy,cross-platform,inmanydynamicWebapplicationprogramminglanguages,inashortspanofafewyears,hasformedacompletesetofstandards,andwidelyusedinelectroniccommerce,etc.InChina,theJSPnowalsogotmoreextensiveattention,getagooddevelopment,moreandmoredynamicwebsitetoJSPtechnology.TherelatedtechnologiesofJSParebrieflyintroduced.
TheJSPasimpletechnologycanquicklyandwiththemethodofgeneratingWebpages.UsetheJSPtechnologyWebpagecanbeeasilydisplaydynamiccontent.TheJSPtechnologyaredesignedtomaketheconstructionbasedonWebapplicationseasierandefficient,andtheseapplicationsandvariousWebserver,applicationserver,thebrowseranddevelopmenttoolsworktogether.
TheJSPtechnologyisn'
ttheonlydynamicwebtechnology,alsonotthefirstone,intheJSPtechnologyexistedbeforetheemergenceofseveralexcellentdynamicwebtechnology,suchasCGI,ASP,etc.Withtheintroductionofthesetechnologiesunderdynamicwebtechnology,thedevelopmentandtheJSP.Technical
1JSPthedevelopmentbackgroundanddevelopmenthistory
Inwebbriefhistory,fromaworldwidewebthatmostofthenetworkinformationstaticonstocktransactionsevolutiontoacquisitionofanoperationandinfrastructure.Inavarietyofapplications,maybeusedforbasedonWebclient,looknorestrictions.
Basedonthebrowserclientapplicationsthantraditionalbasedonclient/serverapplicationshasseveraladvantages.Thesebenefitsincludealmostnolimitclientaccessandextremelysimplifiedapplicationdeploymentandmanagement(toupdateanapplication,managementpersonnelonlyneedtochangetheprogramonaserver,notthousandsofinstallationinclientapplications).So,thesoftwareindustryisrapidlytobuildontheclientbrowsermulti-layerapplication.
TherapidgrowthofexquisitebasedWebapplicationrequirementsdevelopmentoftechnicalimprovements.StaticHTMLtoshowrelativelystaticcontentisrightchoice,ThenewchallengeistocreatetheinteractionbasedonWebapplications,intheseprocedures,thecontentofaWebpageisbasedontheuser'
srequestorthestateofthesystem,andarenotpredefinedcharacters.
FortheproblemofanearlysolutionistouseaCGI-BINinterface.DeveloperswritetointerfacewiththerelevantproceduresandseparatebasedonWebapplications,thelatterthroughtheWebservertoinvoketheformer.Thisplanhasseriousproblem--eachnewextensibleCGIrequirementsinanewprocessontheserver.Ifmultipleconcurrentusersaccesstothisprocedure,theseprocesseswillusetheWebserverofallavailableresources,andtheperformanceofthesystemwillbereducedtoextremelylow.
SomeWebserverprovidershavetoprovidefortheirserverbyplugins"
and"
theAPItosimplifytheWebapplicationdevelopment.ThesesolutionsareassociatedwithcertainWebserver,cannotsolvethespanmultiplesupplierssolutions.Forexample,Microsoft'
sActiveServermix(ASP)technologyintheWebpagetocreatedynamiccontentmoreeasily,butalsocanworkinMicrosoftonPersonalWebServerandIIS.
Thereareothersolutions,butcannotmakeanordinarypagedesignerscaneasilymaster.Forexample,suchastheServletJavatechnologiescanuseJavalanguageinteractionapplicationservercodeeasier.DeveloperstowritesuchServlettoreceivesignalsfromtheWebbrowsertogenerateanHTTPrequest,adynamicresponse(maybeinquiresthedatabasetofinishtherequest),thensendcontainHTMLorXMLdocumentstotheresponseofthebrowser.
note:
oneisbasedonaJavaServletJavatechnicaloperationintheserverprogram(withdifferent,thelatteroperatingintheAppletbrowserend).InthisbooktheServletchapter4.
Usingthismethod,theentirepagemusthavemadeinJavaServlet.IfdevelopersorWebmanagerswanttoadjustpage,you'
llhavetoeditandrecompiletheServletJava,eveninlogichasbeenabletorun.Usingthismethod,thedynamiccontentwiththeapplicationofthepagestillneedtodevelopskills.
Obviously,whatisneededisaindustrytocreatedynamiccontentwithinthescopeofthepagesofthesolution.Thisprogramwillsolvethecurrentschemearelimited.Asfollows:
canonanyWebserverorapplications.
willapplicationpagedisplaysandseparation.
canrapidlydevelopingandtesting.
simplifytheinteractivedevelopmentbasedonWebapplicationprocess.
TheJSPtechnologyisdesignedtomeetsuchrequirements.TheJSPspecificationisaWebserver,applicationserver,tradingsystemanddevelopextensivecooperationbetweenthetoolsuppliers.FromthisstandardtodeveloptheexistingintegrationandbalanceofJavaprogrammingenvironment(forexample,JavaServletandJavaBeans)supporttechniquesandtools.TheresultisakindofnewanddevelopingmethodbasedonWebapplications,usingcomponent-basedapplicationlogicpagedesignerswithpowerfulfunctions.
2OverallSemanticsofaJSPPage
AJSPpageimplementationclassdefinesa_jspService()methodmappingfromtherequesttotheresponseobject.Somedetailsofthistransformationarespecifictothescriptinglanguageused(seeChapterJSP.9,“Scripting”).Mostdetailsarenotlanguagespecificandaredescribedinthischapter.
ThecontentofaJSPpageisdevotedlargelytodescribingthedatathatiswrittenintotheoutputstreamoftheresponse.(TheJSPcontainerusuallysendsthisdatabacktotheclient.)ThedescriptionisbasedonaJspWriterobjectthatisexposedthroughtheimplicitobjectout(seeSectionJSP.1.8.3,“ImplicitObjects”).Itsvaluevaries:
Initially,outisanewJspWriterobject.Thisobjectmaybedifferentfromthestreamobjectreturnedfromresponse.getWriter(),andmaybeconsideredtobeinterposedonthelatterinordertoimplementbuffering(seeSectionJSP.1.10.1,“ThepageDirective”).Thisistheinitialoutobject.JSPpageauthorsareprohibitedfromwritingdirectlytoeitherthePrintWriterorOutputStreamassociatedwiththeServletResponse.
TheJSPcontainershouldnotinvokeresponse.getWriter()untilthetimewhenthefirstportionofthecontentistobesenttotheclient.ThisenablesanumberofusesofJSP,includingusingJSPasalanguageto“glue”actionsthatdeliverbinarycontent,orreliablyforwardingtoaservlet,orchangedynamicallythecontenttypeoftheresponsebeforegeneratingcontent.SeeChapterJSP.4,“InternationalizationIssues”.
Withinthebodyofsomeactions,outmaybetemporarilyre-assignedtoadifferent(nested)instanceofaJspWriterobject.Whetherthisisthecasedependsonthedetailsoftheaction’ssemantics.Typicallythecontentofthesetemporarystreamsisappendedtothestreampreviouslyreferredtobyout,andoutissubsequentlyre-assignedtorefertotheprevious(nesting)stream.Suchnestedstreamsarealwaysbuffered,andrequireexplicitflushingtoanestingstreamortheircontentswillbediscarded.
IftheinitialoutJspWriterobjectisbuffered,thendependinguponthevalueoftheautoFlushattributeofthepagedirective,thecontentofthatbufferwilleitherbeautomaticallyflushedouttotheServletResponseoutputstreamtoobviateoverflow,oranexceptionshallbethrowntosignalbufferoverflow.IftheinitialoutJspWriterisunbuffered,thencontentwrittentoitwillbepasseddirectlythroughtotheServletResponseoutputstream.
AJSPpagecanalsodescribewhatshouldhappenwhensomespecificeventsoccur.InJSP2.1,theonlyeventsthatcanbedescribedaretheinitializationandthedestructionofthepage.Theseeventsaredescribedusing“well-knownmethodnames”indeclarationelements..
JavaScriptisusedforthefirstkindisbrowser,thedynamicgeneralpurposeofclientscriptinglanguage.Netscapefirstproposedin1995,butitsJavaScriptLiveScriptcalled.ThenquicklyNetscapeLiveScriptrenamedJavaScript,Javadeveloperswiththemfromthesameissuedastatement.AstatementJavaandJavaScriptwillcomplementeachother,buttheyaredifferent,sothetechnologyofthemanydismissedthemisunderstandingofthetwotechnologies.
JavaScripttocreateuserinterfacecontrolprovidesascriptinglanguage.Infact,inthebrowserintotheJavaScriptcodelogic.Itcansupportsucheffect:
whenthecursorontheWebpageofamobileuserinputvalidationortransformimage.
MicrosoftalsowriteouttheirJavaScriptversionandtheJScriptcalled.MicrosoftandNetscapesupportJavaScriptandJScriptaroundacorecharacteristicsandEuropeanManufacturersis.mdby(ECMA)standardsorganization,thecontrolstandardofscriptinglanguage.ECMAitsscriptinglanguageECMAScriptnamed.
ServletsandJSPsoftenincludefragmentsofinformationthatarecommontoanorganization,suchaslogos,copyrights,trademarks,ornavigationbars.Thewebapplicationusestheincludemechanismstoimporttheinformationwhereveritisneeded,sinceitiseasiertochangecontentinoneplacethentomaintainitineverypieceofcodewhereitisused.Someofthisinformationisstaticandeitherneverorrarelychanges,suchasanorganization'
slogo.Inothercases,theinformationismoredynamicandchangesoftenandunpredictably,suchasatextualgreetingthatmustbelocalizedforeachuser.Inbothcases,youwanttoensurethattheservletorJSPcanevolveindependentlyofitsincludedcontent,andthattheimplementationoftheservletorJSPproperlyupdatesitsincludedcontentasnecessary.
Youwanttoincludearesour
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 文献 中文翻译