Home  >  Article  >  Java  >  what jsp can do

what jsp can do

little bottle
little bottleOriginal
2019-05-29 10:36:413354browse

what jsp can do

JSP (Java Server Pages), the Java server interface, is a server-side dynamic page technical specification formulated by Sun.

JSP is actually a file with the suffix "jsp". The content of the file is mainly html and a small amount of java code. The container will automatically convert the jsp file into a servlet and then execute it

jsp refers to:

●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 entire generated 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).

The above is the detailed content of what jsp can do. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:How to parse JAVA's jsonNext article:How to parse JAVA's json