Home  >  Article  >  Java  >  What is jsp used for?

What is jsp used for?

青灯夜游
青灯夜游Original
2019-05-31 14:24:426030browse

The full name of jsp is: java server pages (translation: java server page). Since it is a server page of java, it can support web pages written in java code (html files ending with .jsp suffix).

What is jsp used for?

#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).

JSP technology is somewhat similar to ASP technology. It inserts Java program segments (Scriptlet) and JSP tags into traditional web page HTML (a subset of standard universal markup language) files (*.htm, *.html) (tag), thus forming 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.

JSP technology uses the Java programming language to write XML-like tags and scriptlets to encapsulate the processing logic for generating dynamic web pages. JSP separates web page logic from the display of web page design, supports reusable component-based design, and makes the development of web-based applications quick and easy. JSP (JavaServer Pages) is a dynamic page technology, its main purpose is to separate the presentation logic from Servlet.

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!

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:What does java set mean?Next article:What does java set mean?