Home > Java > Java Tutorial > body text

What does jsp do?

青灯夜游
Release: 2019-05-23 18:19:21
Original
4188 people have browsed it

What does jsp do?

The full name of JSP is Java Server Pages (java server pages). JSP technology is somewhat similar to ASP technology. It is based on the traditional web page HTML (a subset of the Standard Universal Markup Language) file ( *.htm, *.html), insert Java program segment (Scriptlet) and JSP tag (tag) to form a JSP file with the suffix (*.jsp). Web applications developed with JSP are cross-platform and can run under Linux as well as other operating systems.

Simply put, JSP can:

● Embed 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 does jsp do?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!