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.
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!