外文文献及中文翻译.docx
《外文文献及中文翻译.docx》由会员分享,可在线阅读,更多相关《外文文献及中文翻译.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