本文是中英对照毕业设计论文外文文献翻译,下载后直接可用!省去您找文献、pdf整理成word以及翻译的时间,一辈子也就一次的事!
文献引用作者出处信息:Giulio Zambon Beginning JSP, JSF and Tomcat Java Web Development,2020(如觉得年份太老,可改为近2年,毕竟很多毕业生都这样做)
英文4315单词,26298字符(字符就是印刷符),中文7125汉字。(如果字数多了,可自行删减,大多数学校都是要求选取外文的一部分内容进行翻译的。)
Tomcat
I’ve been using Tomcat in all the previous chapters to show you examples of servlets, JSP pages, and documents. Now it’s time to talk about Tomcat itself.
Tomcat, an open-source Servlet/JSP server/container from Apache foundation, is essentially three things:
?A web server
?An application that executes Java servlets
?An application that converts JSP pages and documents into Java servlets
In this chapter, I’ll describe the basics of Tomcat’s architecture and its directory structure. I’ll then show you examples of how to do a couple of useful things.
At the moment of writing this chapter, the latest release of Tomcat is 7.0.28, which runs on Java SE 6 (or later), implements the Servlet 3.0 and JSP 2.2 specifications, and supports EL 2.2.
Tomcat is a project of the Apache Software Foundation. Therefore, the authoritative source for obtaining further information on Tomcat is /, which provides extensive documentation (/tomcat-7.0-doc/).
Tomcat’s Architecture and server.xml
Tomcat’s architecture consists of a series of functional components that can be combined according to well-defined rules. The structure of each server installation is defined in the file server.xml, which is located in the conf subdirectory of Tomcat’s installation folder.
In the rest of this section, I’ll go through the components. Listing 9-1 shows the default server.xml (after removing the comments). I’ll refer to it when describing the various components.
Figure 9-1 shows how the major Tomcat components are organized in hierarchical fashion.
Context
A Context is the innermost element of a group of Tomcat components called containers, and it represents a single web application.
Tomcat automatically instantiates and configures a standard contex