1、Web信息系统毕业论文中英文资料外文翻译文献Web信息系统毕业论文中英文资料外文翻译文献 中英文资料翻译Withthe popularityofthe InterNETapplications,a variety of WebInformation SystemHas becomeapressingissue.EstablishtheessenceofWebinformation systemsDevelopment of aWebrepository(databaseas the core ofa variety ofWebletterInformation storage)as the c
2、oreWebapplications.Currently, the WebrepositorydevelopmenttechnologyOperationofa wide range ofdifferent characteristics.Various periodsat all levels,a variety of purposesTechnologyco-exist,dizzyingmirrorchaos, it is difficult tochoose.MorepopularJavaof AndJavaprogramofclassesand packages.1Servletacc
3、essmodel2Servthe let, there are threeaccess models:(1)an accessmodel1browser toWeb servertoissuearetrievalrequest.2the Webserverafterreceipt of the request,therequestforwarded to theServle tengine.3 Serletengineto perform the requestedtheSer vletanddirectlythrough JDBC4ServletthroughJDBCtoretrievese
4、arch resultstogeneratethehtmlpage andPageback totheWeb server. 5the Webserverthe pageissentback to the browser.(2)The secondaccessmodel1browser toWeb servertoissuearetrievalrequest.2the Webserver receives the requestafter therequestforwarded totheof Servthe letengine.3 Serv letengineto perform there
5、questthetheSer vletandretrievesentJa,vabeanaccesstothedata.4dataaccesstheJa vabeansearchable databasethrough JDBCinformationAndfrom the search resultsstoredinitself.5Servletremovesearch resultsfromthedataaccessJavabeangenerateHtmlpage andHtml ofpageback to thewebserver.6the Webserverthe pageissentba
6、ck to the browser.(3)The thirdaccess model1 Abrowserissuearetrievalrequestto the Web server.2 Webserver receives the requestafter therequestforwarded totheof Servthe letengine.Of Servletengineto perform the requestedServletdirectlythrough JDBCinspection3 Thecabledatabase andsearch resultsare stored
7、in theresult is storedtheJav abeaninto.Javabean,4.Servthe letfromtheresults are storedtoremovethesearch resultsandJSP filestoformattheoutputpage.2Servletfunctionality andlife cycle2.1Servletfunctions(1)Createand returndynamic Web pagesbasedoncustomer requests.(2)createcan be embedded intoexistingHTM
8、L pagesas part ofHTMLPage (HTfragment)ofthe ML.(3)andotherserver resources(including databasesandapplicationsbasedontheJavaProgram)to communicate.(4)tohandlemultipleclientconnections, receivingtheinputofmorethanoneclient, andThe resultsbroadcast tomultiple clients.Forexample, Servletis a multi-parti
9、cipantGame server.(5)of MIMEtypefilterinformationonthespecial handling, such asimageConversion andserver-sideinclude(SSI).(6)customprocessingavailabletoall servers inthe standardroutine.2.2Servlet lifecycleServletlife cyclebeginswithit intotheWeb servers memoryAndendinthetermination orre-loadedServt
10、he let.(1)load.Loadtheservletat the followingtimes:1.If you have configuredautomaticloadoption, andthenstarttheWeb serverautomatically loaded2.AfterthestartoftheWeb server,theclientServthe letissuedforthefirsttime, pleaseDemand.3.ReloadServthe let.LoadedServlet, Web serversto create aservlet instanc
11、e,andServletsinit () methodiscalled.Servletinitializationparametersintheinitialization phase,Thenumberis passedto the Servletconfiguration object.(2)terminateWhentheWeb serverno longerneedstheservlet,orreloadServletA new instance oftheservercallsServthe letsdestroy () method,remove it from theMemory
12、deleted.3 How tocallServletMethodof ServletiscalledTotalfive kinds:callin the URLintheform Tagcall,call,inHTthe MLpageintheJSP filesCall,callin an ASP file.The followingitemizedto be introduced.(1)call theservletin the URL.Simplyinput formatin the browserashttp: yo ur webser verthe sametheservletnam
13、ename/ servletpath /servletthe URLtoThesitecanbe.Ofwhich:your webser ver nameistorefer totheServletwhere theWeb servername,the servletpath is thepathrefers to theServlet,the servletThenamerefers totheServletreal nameoran alias.(2)call the Servlet tagsCallof Serthe letthethetagallows users toinput da
14、taon the Web page,andinput datasubmitted to thevletof Ser.Servthe letwillbesubmittedto receive datain different ways.For example: place thetext input areatags,buttons andother logos(3)in the HTML pagetocalltheservlet.Usemark tags,no need to createa completeHTML page.Instead,theservletoutputisonlypar
15、toftheHTMLpage(HTMLfragment)anddynamicallyembedded into thestatic textintheoriginalHTML page.All this happenedon the serverandsentto the useronlythe resulting HTML page.tagcontainedintheoriginal HTMLpage.Servlet willbe invokedinthese two markersandtheSer vletresponsewillcoverthese two markersbetween
16、allthingsandmarkitself, for example:SERVLET NAME= “my serv let ”CODE= “my serv let .class”CODEBASE= “u r l”initpar am= “v alue”PARAM NAME= “parm1”VALU E= “v alue1”PARAM NAME= “parm2”VALU E= “v alue2”/SERVLET (4)call theservletintheJSP files.CallintheJSPfileformatusedbytheServletandHTMLpageto callexa
17、ctly the same.Andtheprinciplesare identical.OnlyreconcileitsdynamicJSPfile is not astatic HTMLpage.(5)in an ASP filecallstheservlet.If youMicrosoftInternetInformation-Server(IIS)on thelegacyof the ASP file,andcan not beASP filestransplantedintoaJSP file,you can usetheASP filetoof Servletiscalled.But
18、 it must bethroughaspecialActiveXcontrol,an ASP fileis only throughit cancalltheservlet.4ServletHowtouseConnectionManagerto efficiently managethe database connection(1)the functionalityoftheConnection Manager.Fornon-Web applications,Web-basedapplicationaccess to the databasewill lead tohigherandunpr
19、edictableoverhead, which isdue tomore frequentWeb usersconnect anddisconnect.Normally connectedtothe resources usedanddisconnect from the databasewill far exceedtheresourcesusedintheretrieval.Connection Managerfunction isto minimizetheadditionaloccupancyoftheusers ofthedatabaseresourcesto achievethe
20、best performanceofdatabase access.Connection Managersharingoverheadthrough the establishment oftheconnection poolwill connectusersServletavailableto multiple usersrequest.Inotherwords, each userrequestonly theconnect /disconnectwitha small portionoftheoverheadcosts.Initialresourcesto establishthecon
21、nectionofthebufferpool,therestoftheconnect /disconnectoverheadis not big, becausethis is onlyreusetheexistingconnection.Servthe letin the following mannerusing theconnection pool:WhenauserthroughRequestWebServthe letthe letServusean existingconnectionfrom the buffer poolNext,this means thattheuser r
22、equestsdo not causetheconnection to the databasesystemoverhead.InAftertheterminationofservthe letitconnectto returntothepoolfor itsConnection ManagerTheSer vlet.Thus,theuserrequestdoes not causethe databaseis disconnectedOf system overhead.Connection Manageralso allows userstobe able to controltheco
23、ncurrencyofthedatabase productsevenThenthe number.Whenthedatabaselicense agreementlimitthenumber of users,this featureisVery useful.Createa bufferpoolfor the database, andconnection managementBufferingpoolmaximumnumber of connectionsparameterset tothedatabaseproduct licenselimitGivenmaximum number o
24、f users.If you useother programswithoutConnection ManagerconnectionsDatabase, you can notguarantee that the methodiseffective.(2)the structure ofthe Connection Manager.(3)Connection Manager connection pool to maintain a connection to a specific database is open.Step 1: When the first Serv the let tr
25、ying to Connection Manager communications is loaded by the Java Application Server Connection Manager.As long as the Java application server running the Connection Manager has been loaded. Step 2: The Java application server passes the request to a servlet.Step 3: Servlet Connection Manager requests
26、 a connection from the pool.Step four: the buffer pool to Ser vlet allocated a pool of existing idle connection.Step 5: servlet to use to connect a direct dialogue with the database, this process is the standard API for a particular database.Step 6: the database through Ser vlet the connection retur
27、ns data.Step 7: When the Servlet end to communicate with the database, servlet connections returned to the connection manager pool for other servlet uses. Step 8: Servlet Jav a application server to the user sends back response.Servlet requests a connection, if the buffer pool, there is no idle conn
28、ection, then the connection manager directly communicate with the database.Connection Manager will: Step 9: to the database requests a new connection.Step 10: Add connections to the buffer pool.If the buffer pool is connected to the prescribed ceiling, connect to the serverWill not be a new connecti
29、on to join the buffer pool(3) the performance characteristics of the Connection Manager.Buffer pool to create a new connection is a high overhead tasks, new connections will use the resources on the database.Therefore, the Connection Manager the best use of existing connections of the buffer pool to meet the request of the Servlet.Meanwhile, the connecting tubeThe processor must be as much as possible to minimize the buffer pool idle connections, because this is a gre
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1