Web信息系统毕业论文中英文资料外文翻译文献

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

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

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

资源描述

中英文资料翻译WiththepopularityoftheInterNETapplications,avarietyofWebInformationSystemHasbecomeapressingissue.EstablishtheessenceofWebinformationsystemsDevelopmentofaWebrepository(databaseasthecoreofavarietyofWebletterInformationstorage)asthecoreWebapplications.Currently,theWebrepositorydevelopmenttechnologyOperationofawiderangeofdifferentcharacteristics.Variousperiodsatalllevels,avarietyofpurposesTechnologyco-exist,dizzyingmirrorchaos,itisdifficulttochoose.MorepopularJavaofServetWebrepositorydevelopmentprogramamorepracticalOfchoice.ServletisrunningtheappletontheWebserver,canbecompletedXuMulti-clientAppletcannotcompletethework,whichrunsontheserverandclientsNoend,donotdownloaddonotbytheclientsecurityrestrictions,therunningspeedGreatlyincreasedAndAppletrunninginabrowserandextendthebrowser'sabilitysimilarLike,ServtheletrunintheWebservertoenableJavaServtheletengineAndexpandthecapacityoftheserver.Therefore,wecansayServtheletisruninAppletonaWebserver,ServtheletJavaServletAPIAndJavaprogramofclassesandpackages.1Servletaccessmodel2Servthelet,therearethreeaccessmodels:(1)anaccessmodel1browsertoWebservertoissuearetrievalrequest.2theWebserverafterreceiptoftherequest,therequestforwardedtotheServletengine.3SerletenginetoperformtherequestedtheServletanddirectlythroughJDBC4ServletthroughJDBCtoretrievesearchresultstogeneratethehtmlpageandPagebacktotheWebserver.5theWebserverthepageissentbacktothebrowser.(2)Thesecondaccessmodel1browsertoWebservertoissuearetrievalrequest.2theWebserverreceivestherequestaftertherequestforwardedtotheofServtheletengine.3ServletenginetoperformtherequestthetheServletandretrievesentJa,vabeanaccesstothedata.4dataaccesstheJavabeansearchabledatabasethroughJDBCinformationAndfromthesearchresultsstoredinitself.5ServletremovesearchresultsfromthedataaccessJavabeangenerateHtmlpageandHtmlofpagebacktothewebserver.6theWebserverthepageissentbacktothebrowser.(3)Thethirdaccessmodel1AbrowserissuearetrievalrequesttotheWebserver.2WebserverreceivestherequestaftertherequestforwardedtotheofServtheletengine.OfServletenginetoperformtherequestedServletdirectlythroughJDBCinspection3ThecabledatabaseandsearchresultsarestoredintheresultisstoredtheJavabeaninto.Javabean,4.ServtheletfromtheresultsarestoredtoremovethesearchresultsandJSPfilestoformattheoutputpage.2Servletfunctionalityandlifecycle2.1Servletfunctions(1)CreateandreturndynamicWebpagesbasedoncustomerrequests.(2)createcanbeembeddedintoexistingHTMLpagesaspartofHTMLPage(HTfragment)oftheML.(3)andotherserverresources(includingdatabasesandapplicationsbasedontheJavaProgram)tocommunicate.(4)tohandlemultipleclientconnections,receivingtheinputofmorethanoneclient,andTheresultsbroadcasttomultipleclients.Forexample,Servletisamulti-participantGameserver.(5)ofMIMEtypefilterinformationonthespecialhandling,suchasimageConversionandserver-sideinclude(SSI).(6)customprocessingavailabletoallserversinthestandardroutine.2.2ServletlifecycleServletlifecyclebeginswithitintotheWebserver'smemoryAndendintheterminationorre-loadedServthelet.(1)load.Loadtheservletatthefollowingtimes:1.Ifyouhaveconfiguredautomaticloadoption,andthenstarttheWebserverautomaticallyloaded2.AfterthestartoftheWebserver,theclientServtheletissuedforthefirsttime,pleaseDemand.3.ReloadServthelet.LoadedServlet,Webserverstocreateaservletinstance,andServlet'sinit()methodiscalled.Servletinitializationparametersintheinitializationphase,ThenumberispassedtotheServletconfigurationobject.(2)terminateWhentheWebservernolongerneedstheservlet,orreloadServletAnewinstanceoftheservercallsServthelet'sdestroy()method,removeitfromtheMemorydeleted.3HowtocallServletMethodofServletiscalledTotalfivekinds:callintheURLintheformFormTagcall,call,inHTtheMLpageintheJSPfilesCall,callinanASPfile.Thefollowingitemizedtobeintroduced.(1)calltheservletintheURL.Simplyinputformatinthebrowserashttp:∥yourwebserverthesametheservletnamename/servletpath/servlettheURLtoThesitecanbe.Ofwhich:yourwebservernameistorefertotheServletwheretheWebservername,theservletpathisthepathreferstotheServlet,theservletThenamereferstotheServletrealnameoranalias.(2)calltheServletFORMtagsCallofSertheletthetheFORMtagallowsuserstoinputdataontheWebpage,andinputdatasubmittedtothevletofSer.Servtheletwillbesubmittedtoreceivedataindifferentways.Forexample:FORMMETHOD=POST/aGETtheACTION=/servletpath/servletname{placethetextinputareatags,buttonsandotherlogos}(3)intheHTMLpagetocalltheservlet.UseSERVLETmarkFORMtags,noneedtocreateacompleteHTMLpage.Instead,theservletoutputisonlypartoftheHTMLpage(HTMLfragment)anddynamicallyembeddedintothestatictextintheoriginalHTMLpage.AllthishappenedontheserverandsenttotheuseronlytheresultingHTMLpage.SERVLET/SERVLETtagcontainedintheoriginalHTMLpage.ServletwillbeinvokedinthesetwomarkersandtheServletresponsewillcoverthesetwomarkersbetweenallthingsandmarkitself,forexample:〈SERVLETNAME=“myservlet”CODE=“myservlet.class”CODEBASE=“url”initparam=“value”〉〈PARAMNAME=“parm1”VALUE=“value1”〉〈PARAMNAME=“parm2”VALUE=“value2”〉⋯⋯〈/SERVLET〉(4)calltheservletintheJSPfiles.CallintheJSPfil

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

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

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

×
保存成功