外文文献及中文翻译.docx

上传人:b****7 文档编号:9535146 上传时间:2023-02-05 格式:DOCX 页数:14 大小:29.29KB
下载 相关 举报
外文文献及中文翻译.docx_第1页
第1页 / 共14页
外文文献及中文翻译.docx_第2页
第2页 / 共14页
外文文献及中文翻译.docx_第3页
第3页 / 共14页
外文文献及中文翻译.docx_第4页
第4页 / 共14页
外文文献及中文翻译.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

外文文献及中文翻译.docx

《外文文献及中文翻译.docx》由会员分享,可在线阅读,更多相关《外文文献及中文翻译.docx(14页珍藏版)》请在冰豆网上搜索。

外文文献及中文翻译.docx

外文文献及中文翻译

毕业设计说明书

英文文献及中文翻译

软件学院

学生姓名:

学号:

软件工程

学院:

唐利忠李华玲

专业:

指导教师:

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

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 外语学习 > 英语学习

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1