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.
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.
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!