Home >Java >javaTutorial >What is jsp used for?
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).
#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!