Home  >  Article  >  Web Front-end  >  what is jsp file

what is jsp file

anonymity
anonymityOriginal
2019-05-07 15:08:4126181browse

what is jsp file

What is JSP?
JSP (JavaServer Pages) is a dynamic web page technology standard initiated by Sun Microsystems and established with the participation of 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 files (*.htm, *.html) to form a JSP file ( *.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. Web pages can also access the application logic of resources that exist on the server through tags and scriptlets. JSP separates web page logic from web page design and display, supports reusable component-based design, and makes the development of web-based applications quick and easy.
When the Web server encounters a request to access a JSP web page, it first executes the program segment, and then returns the execution result to the client together with the HTML code in the JSP file. The inserted Java program segments can operate databases, redirect web pages, etc., to achieve the functions required to create dynamic web pages.
JSP is the same as Java Servlet. It is executed on the server side. Usually what is returned to the client is an HTML text, so the client can browse it as long as it has a browser.
The last version of the JSP 1.0 specification was launched in September 1999, and the 1.1 specification was launched in December. The newer one at present is the JSP1.2 specification, and the draft for comments on the JSP2.0 specification has also been released.
JSP page is composed of HTML code and Java code embedded in it. The server processes these Java codes after the page is requested by the client, and then returns the generated HTML page to the client's browser. Java Servlet is the technical foundation of JSP, and the development of large-scale Web applications requires the cooperation of Java Servlet and JSP. JSP has all the characteristics of Java technology that are simple and easy to use, completely object-oriented, platform-independent, safe and reliable, and mainly oriented to the Internet.

The above is the detailed content of what is jsp file. 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 is a hyperlink?Next article:What is a hyperlink?