Introduction to Tomcat in the SSH framework tutorial, and tomcat in the ssh framework

Source: Internet
Author: User

Introduction to Tomcat in the SSH framework tutorial, and tomcat in the ssh framework

The introduction to Tomcat in the SSH framework tutorial. Before introducing Tomcat, I would like to introduce IIS first, because the Tomcat to be introduced today is similar to the built-in Windows Server IIS, which is a local computer server. After introducing the IIS dishes, I will introduce Tomcat. I personally think this will be more helpful to everyone's understanding.

IIS

1. What is it?

?? IIS (Internet Information Server) is a Web service component, including Web servers, FTP servers, NNTP servers, and SMTP servers, it is used for Web browsing, file transmission, news services, and mail sending. It makes it easy to publish information on the Internet. In addition, it can be installed and uninstalled according to user requirements.

2. What is the role?

?? The basic server (that is, the local server) used for Web page design (focusing on the assembly languages such as asp and java), which can be used for implementation and running (testing) your webpage.

3. How can this problem be solved?

?? IIS is a virtual server. Once the computer is installed, it can create a website on its own computer and publish a webpage for others to browse. In short, IIS is a Web service component used to carry the platform for running programs on the website.

Tomcat

1. What is it?

?? Tomcat is a lightweight web application server and the first choice for JSP program development and debugging.

?? When an Apache (Note: Apache is a web server) server is configured on a machine, it can be used to respond to access requests from HTML pages. In fact, Tomcat is an extension of the Apache server, but it runs independently at runtime. Therefore, when you run tomcat, it actually runs independently as a process independent of Apache.

?? [NOTE 1] -- Tomcat is a web application server because it can provide a running container for Java EE Web applications.

?? [NOTE 2] -- difference between web server and application server ...... The Web server processes HTTP requests. The application server uses many protocols to provide business logic for applications ).

2. What is the role?

① Web Server

?? That is, you can view the www webpage and place the webpage on the server to process the HTML page function.

② Web Container

?? The reason why Tomcat is called a web Container -- most of the web projects require the http protocol, that is, based on requests and responses. For example, when Baidu inputs the search content, how Does Baidu server handle this request?

--> It needs to create a servlet for processing. The servlet is actually a java program, but a java program on the server side. The servlet intercepts your request through the configuration file and processes it accordingly, then, how can I create a servlet?

--> Tomcat is used at this time. It is something that helps you create Servlets, so it is also called a web container.

--> You cannot run a web project without a web container. There are many corresponding web containers, such as JBOSS and WEBLOGIC.

3. Why?

?? Tomcat is an open-source, java-based container for deploying web projects.

?? Common html can be directly implemented by the browser without tomcat or other deployment. However, for java programs such as Servlets, the browser cannot parse the content directly. These require a tool to process data so that the browser can correctly identify the information when accessing the host.

?? It can help us connect to http requests (some common processing), and then forward the requests to our servlet processor for processing. We only need to put our own business processing in the servlet service method, you do not need to pay attention to other unnecessary things.

4. What are the roles of Tomcat directory files?

 

 

5. Share links

Tomcat server principles

Roles of tomcat directory files

Summary

?? More practices and exercises are required for Tomcat usage. The above is a blog written by myself based on some Baidu materials I have checked.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.