Home > Java > Javagetting Started > body text

Is jsp front-end or back-end?

青灯夜游
Release: 2023-01-28 18:23:48
Original
21302 people have browsed it

jsp belongs to the backend. The essence of jsp is a servlet, and servlet is a server-side java application, so jsp is a back-end technology. JSP is deployed on the network server and can respond to requests sent by the client and dynamically generate Web pages of HTML, XML or other format documents based on the request content, and then return them to the requester. JSP technology uses Java as a scripting language to provide services for user HTTP requests, and can handle complex business requirements together with other Java programs on the server.

Is jsp front-end or back-end?

The operating environment of this tutorial: windows7 system, java8 version, DELL G3 computer.

What does jsp mean

The full name of JSP is Java Server Pages, and its Chinese name is java server page. It is a dynamic web development technology . It uses JSP tags to insert Java code into HTML web pages; tags usually start with .

JSP is deployed on the network server and can respond to requests sent by the client and dynamically generate Web pages of HTML, XML or other format documents based on the request content, and then return them to the requester. JSP technology uses Java language as a scripting language to provide services for users' HTTP requests, and can handle complex business requirements together with other Java programs on the server.

JSP embeds Java code and specific changes into static pages, using the static pages as templates to dynamically generate part of the content. JSP introduces XML tags called "JSP actions" to call built-in functions. Alternatively, you can create JSP tag libraries and then use them just like standard HTML or XML tags. Tag libraries enhance functionality and server performance without being limited by cross-platform issues. JSP files are converted into more primitive Servlet code by their compiler at runtime. The JSP compiler can compile the JSP file into a Servlet written in Java code, and then the Java compiler can compile it into binary machine code that can be executed quickly, or it can be directly compiled into binary code.

Jsp belongs to front-end or back-end?

jsp executes web components in the service and separates the logic of the web page from the structure of the web page. The fundamental purpose is to separate the logic from the servlet. The essence of jsp is a servlet, and servlet is a server-side java application. That is to say, jsp should belong to the back end. However, in the MVC layering, jsp belongs to view. Currently, jsp is mostly used for displaying data and pages, not for logical processing. Overall, jsp is a back-end technology.

Is jsp front-end or back-end?

JSP technology is somewhat similar to ASP technology. It is inserted into traditional web page HTML (a subset of Standard Universal Markup Language) files (*.htm, *.html) Java program segment (Scriptlet) and JSP tag (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.

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of Is jsp front-end or back-end?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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