资源描述:
《外文翻译---servlet和jsp技术简述》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、英文翻译资料A.英文原文与本课题相关的英文资料原文,不少于3000字符。AnOverviewofServletandJSPTechnologyNagle,WiegleyAbstract:Servletprogramrunningintheserver-side,dynamicallygeneratedWebpagewiththetraditionalCGIandmanyothersimilarcomparedtoCGItechnology,JavaServletwithamoreefficient,easiertouse,morepowerfulandhasbet
2、terportability,moresavingstoinvest..Keywords:JSPTechnology;Servlet;HTTPserverServletsareJavaprogramsthatrunonWeborapplicationservers,actingasamiddlelayerbetweenrequestscomingfromWebbrowsersorotherHTTPclientsanddatabasesorapplicationsontheHTTPserver.Theirjobistoperformthefollowingtasks
3、,asillustratedinFigure1-1.Figure1-1 WebmiddlewareroleAServlet'sJobReadtheexplicitdatasentbytheclient.TheendusernormallyentersthisdatainanHTMLformonaWebpage.However,thedatacouldalsocomefromanappletoracustomHTTPclientprogram.ReadtheimplicitHTTPrequestdatasentbythebrowser.Figure1-1showsa
4、singlearrowgoingfromtheclienttotheWebserver(thelayerwhereservletsandJSPexecute),buttherearereallytwovarietiesofdata:theexplicitdatathattheenduserentersinaformandthebehind-the-scenesHTTPinformation.Bothvarietiesarecritical.TheHTTPinformationincludescookies,informationaboutmediatypesand
5、compressionschemesthebrowserunderstands,andsoon.Generatetheresults.Thisprocessmayrequiretalkingtoadatabase,executinganRMIorEJBcall,invokingaWebservice,orcomputingtheresponsedirectly.Yourrealdatamaybeinarelationaldatabase.Fine.Butyourdatabaseprobablydoesn'tspeakHTTPorreturnresultsinHTM
6、L,sotheWebbrowsercan'ttalkdirectlytothedatabase.Evenifitcould,forsecurityreasons,youprobablywouldnotwantitto.Thesameargumentappliestomostotherapplications.YouneedtheWebmiddlelayertoextracttheresultsinsideadocument.Sendtheexplicitdata(i.e.,thedocument)totheclient.Thisdocumentcanbesenti
7、navarietyofformats,includingtext(HTMLorXML),binary(GIFimages),orevenacompressedformatlikegzipthatislayeredontopofsomeotherunderlyingformat.But,HTMLisbyfarthemostcommonformat,soanimportantservlet/JSPtaskistowraptheresultsinsideofHTML.SendtheimplicitHTTPresponsedata.Figure1-1showsasingl
8、earro