Home > Java > javaTutorial > body text

What is jsp used for?

藏色散人
Release: 2020-10-13 10:47:28
Original
10830 people have browsed it

jsp is used to separate content generation and display. JSP pages are usually compiled into Java servlets, which are a standard Java extension. JSP pages are executed by a JSP engine installed on a web server or an application server that uses JSP.

What is jsp used for?

JSP (Java Server Pages), the Java server interface, refers to:

(Recommended tutorial: java course

●Embedded Java script code in HTML

●The embedded Java script code is compiled and executed by the JSP engine in the application server

●Then the generated The entire page information is returned to the client

The JSP page is executed by the JSP engine installed on the Web server or application server that uses JSP. The JSP engine accepts client requests for JSP pages and generates JSP pages as a response to the client.

JSP pages are usually compiled into Java Servlets, which is a standard Java extension. Page developers have access to the full Java application environment to take advantage of the scalability and portability of Java technology. When the JSP page is called for the first time, if it does not already exist, it will be compiled into a Java Servlets class and stored in the server's memory. This results in a very fast response from the server on subsequent calls to the page (this avoids the problem of CGI-BIN spawning a new process for each HTTP request). ​

Related recommendations: "java introductory tutorial"

The above is the detailed content of What is jsp used for?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
jsp
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template