Introduction of JSP and Servlet

What are servlets and JSPS

There are two main technologies used in developing web applications with Java, namely servlet and JSP. Servlet is a java program executed on the server side. A program called servlet container (actually server) is responsible for executing Java programs, while JSP (Java server page) is a page, which is executed by JSP container.

The biggest difference between servlet and JSP is that servlet is mainly Java program, and out. Out. Out. Out. Out. Out. Out. Out. Out. Out Println function, that is, html is embedded in Java; JSP is mainly HTML page. When java code needs to be written, java code is directly inserted into the page, that is, Java is embedded in HTML. Typical examples are as follows:

JSP file

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>