资源描述:
《how tomcat works.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、IntroductionOverviewWelcometoHowTomcatWorks.ThisbookdissectsTomcat4.1.12and5.0.18andexplainstheinternalworkingsofitsfree,opensource,andmostpopularservletcontainercode-namedCatalina.Tomcatisacomplexsystem,consistingofmanydifferentcomponents.Thosewhowant
2、tolearnhowTomcatworksoftendoknowwheretostart.Whatthisbookdoesisprovidethebigpictureandthenbuildasimplerversionofeachcomponenttomakeunderstandingthatcomponenteasier.Onlyafterthatwilltherealcomponentbeexplained.YoushouldstartbyreadingthisIntroductionasit
3、explainsthestructureofthebookandgivesyouthebriefoutlineoftheapplicationsbuilt.Thesection"PreparingthePrerequisiteSoftware"givesyouinstructionsonwhatsoftwareyouneedtodownload,howtomakeadirectorystructureforyourcode,etc.WhoThisBookIsforThisbookisforanyon
4、eworkingwiththeJavatechnology.Thisbookisforyouifyouareaservlet/JSPprogrammeroraTomcatuserandyouareinterestedinknowinghowaservletcontainerworks.ItisforyouifyouwanttojointheTomcatdevelopmentteambecauseyouneedtofirstlearnhowtheexistingcodeworks.Ifyouha
5、veneverbeeninvolvedinwebdevelopmentbutyouhaveinterestinsoftwaredevelopmentingeneral,thenyoucanlearnfromthisbookhowalargeapplicationsuchasTomcatwasdesignedanddeveloped.IfyouneedtoconfigureandcustomizeTomcat,youshouldreadthisbook.Tounderstandthediscussi
6、oninthisbook,youneedtounderstandobject-orientedprogramminginJavaaswellasservletprogramming.Ifyouarenotfamiliarwiththelatter,thereareaplethoraofbooksonsendets,includingBudi'sJavafortheWebwithServlets,JSP,andEJB.Tomakethematerialeasiertounderstand,eachch
7、apterstartswithbackgroundinformationthatwillberequiredtounderstandthetopicindiscussion.HowAServletContainerWorksAservletcontainerisacomplexsystem.However,basicallytherearethreethingsthataservletcontainerdoestoservicearequestforaservlet:Creatingareques
8、tobjectandpopulateitwithinformationthatmaybeusedbytheinvokedservlet,suchasparameters,headers,cookies,querystring,URI,etc.Arequestobjectisaninstanceofthejavax.servlet.ServletRequestinterfaceorthejavax.servlet.http.ServletRequestinterface