Tomcat, Apache, web server, Servlet, JSP

Source: Internet
Author: User
Tags http authentication

Tomcat

Tomcat is a core project in the Jakarta project of the Apache Software Foundation. It is developed by Apache, sun, and other companies and individuals.

Tomcat supports Servlet and JSP specifications. It is a lightweight Web application server and is used for JSP development and debugging.ProgramFirst Choice.

When the configuration is correct, Apache serves the HTML page, while Tomcat actually runs the JSP page and servlet. In addition, tomcat, like Web servers such as IIS and Apache, can process HTML pages. In addition, it is a Servlet and JSP Container. The independent servlet container is the default mode of Tomcat. However, Tomcat cannot process static html as well as Apache servers.

Apache

Apache is the world's No. 1 web server software.

Originally, it was used only for small or experimental Internet networks, and was gradually expanded to various Unix systems, especially for Linux. Apache has multiple products that support SSL technology and multiple virtual hosts. Apache is a process-based structure. Processes consume more system expenses than threads and are not suitable for multi-processor environments.
When a web site is scaled up, servers are usually added or cluster nodes are expanded instead of processors. Apache is still the most popular Web server in the world so far, with a market share of about 60%. Many famous websites in the world, such as Amazon and Yahoo! , W3
Consortium and Financial Times are all products of Apache, its success mainly lies in its open source code, an open development team, and support for cross-platform applications (which can run on almost all UNIX, windows, and Linux platforms) and its portability.

Apache web server software has the following features:

Supports the latest HTTP/1.1 Communication Protocol

Simple and powerful file-based configuration process

Supports Common Gateway Interfaces

Supports IP-based and domain-based Virtual Hosts

Supports multiple HTTP authentication methods

Integrate the Perl Processing Module

Integrated Proxy Server Module

Supports real-time monitoring of server status and custom server logs

Support for server-side include commands (SSI)

Support for Secure Socket Layer (SSL)

Tracking user session Process

FastCGI support

Third-party modules support Java Servlets

Web Server

Web servers, also known as World Wide Web servers, provide online information browsing services.

The Web server can provide documents to the requesting browser.Program.

1. The server isPassive Program: The server responds only when the browser running on other computers on the Internet sends a request.

2. The most common Web servers are Apache and Microsoft Internet Information Server (IIS ).

3. An Internet server, also known as a Web server, is a computer with an independent IP address on the Internet. It can provide Internet services such as WWW, email, and FTP to clients on the Internet .]

Servlet

Servlet is a Java application on the server side. It is independent of platform and protocol and can generate dynamic web pages. It serves as the intermediate layer between customer requests (Web browsers or other HTTP client programs) and server responses (databases or applications on the HTTP server. Servlet is a Java application on the server inside the Web server. Unlike the traditional Java application started from the command line, servlet is loaded by the Web server, the Web server must contain a Java virtual machine that supports servlet.

The main function of servlet is to interactively browse and modify data to generate dynamic web content. This process is:

The client sends a request to the server;

The server sends the request information to the Servlet

The servlet generates the response content and sends it to the server. The dynamic generation of response content usually depends on the client request

The server returns the response to the client.

JSP

JSP (Java Server Pages) is a dynamic web page technical standard proposed by Sun Microsystems and jointly established by many companies. JSP technology is a bit similar to ASP technology, it is in the traditional web page HTML file (*. htm ,*. insert the Java program segment (scriptlet) and JSP tag in HTML to form a JSP file (*. JSP ).
Web applications developed using JSP are cross-platform

Comparison between Java Servlet and JSP

JavaServer Pages (JSP) is a technology that implements the hybrid coding of common static html and dynamic HTML. jsp does not add any functions that cannot be implemented by Servlet in essence. However, it is more convenient to compile static HTML in JSP, and you do not need to use the println statement to output each line of HTMLCode. More importantly, with the separation of content and appearance, different types of tasks in page creation can be conveniently separated.

The above materials are from Baidu encyclopedia unless otherwise specified.

Related Article

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.