The concepts you need to understand in Java learning must include Servlet. Servlet (Server Applet) is the abbreviation of Java Servlet. It is called a small service program or service connector. It is a server-side program written in Java. It has the characteristics of being independent of platform and protocol. Its main function is to browse and generate data interactively and generate Dynamic web content.
Servlet is the abbreviation of Java Servlet, which is called a small service program or service connector. It is a server-side program written in Java and has the characteristics of being independent of platform and protocol. The function is to browse and generate data interactively and generate dynamic Web content.
Servlet is a tool class in the Java programming language. It is used to extend the performance of the server. The server hosts applications that can be accessed through the "request-response" programming model. .
Initially there was no jsp, only servlet, which means that the initial development process was .java->.class. Later, because writing html code in servlet was too cumbersome, the jsp type was added. The main functions of servlets in JavaWeb are to carry network connections and business logic processing, such as conversion of some encoding formats, login interception, etc.
Although servlets can respond to any type of request, they are usually only used to extend Web server applications. Java Servlet technology defines an HTTP-specific servlet class for these applications.
The above is the detailed content of What class does a servlet belong to?. For more information, please follow other related articles on the PHP Chinese website!