Know Javaweb,servlet, JSP, Tomcat, HTTP protocol, Web server

Source: Internet
Author: User

Javaweb usually refers to Java application development on the server side.

In general, the server is operating under network communication conditions, which can not be separated from the HTTP protocol.

The HTTP protocol is the specification for server and client communication, which specifies the format of the information, which can be recognized by the server and feedback information. Request refers to the information that the client sends to the service compiler, and the response (response) refers to the information that the server feeds back to the client.

Tomcat, a Servlet container, can run on a Web server and run a Java Servlet, but it does not implement the EE specification.

The JSP,JAV service page, which is a Web file format designed to alleviate the HTML effort when writing a servlet, is still essentially a servlet class that will be converted to a servlet on the server side to run, The servlet class file generated by the Tomcat conversion JSP file and its source code can be seen in Tomcat's work directory.

Servlet, is an interface, the implementation of the class is also referred to as servlet, these classes can be called by the Tomcat and other containers to implement the service side of the application function. The servlet that we write is recognized by Tomcat when it is configured in Web. XML, and when the client accesses the servlet for the first time, Tomcat creates the servlet instance in a reflective manner, invokes its Init method, and then calls its service method, and then accesses it again, and only calls its S Ervice method.

Know Javaweb,servlet, JSP, Tomcat, HTTP protocol, Web server

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.