Home  >  Article  >  Web Front-end  >  What can jsp do

What can jsp do

anonymity
anonymityOriginal
2019-05-29 15:12:134054browse

The full name of JSP is Java Server Pages, and the Chinese name is java server page. It is basically a simplified Servlet design. It is a dynamic web page technology standard advocated by Sun Microsystems and established by many companies. JSP technology is somewhat similar to ASP technology. It inserts Java program segments (Scriptlet) and JSP tags (tags) into traditional web page HTML (a subset of standard universal markup language) files (*.htm, *.html) to form JSP file, the suffix is ​​(*.jsp). Web applications developed with JSP are cross-platform and can run under Linux as well as other operating systems.

What can jsp do

#JSP pages are executed by a JSP engine installed on a Web server or an 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).

JSP pages can be included in a variety of different application architectures or models, and can be used in a combination of different protocols, components and formats. JSP-based dynamic information publishing technology is an open, extensible standard for establishing dynamic Web pages. Regardless of the creation tool used, developers can use JSP pages to create portable Web applications that run on different Web application servers.

Dynamic page technology in javaweb. The jsp will first be compiled into a servlet, and the servlet can directly call the java code to interact with the java application. jsp writes java code in <%%>.

The above is the detailed content of What can jsp 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