Basic jsp development knowledge and basic jsp knowledge

Source: Internet
Author: User

Basic jsp development knowledge and basic jsp knowledge

1. JSP Definition

JSP stands for Java Server Pages. It is a technology defined by SUN for developing dynamic web resources.
Its implementation is to embed java code in our html code. The jsp file extension is. jsp.
Features: Writing JSP is like writing html, but java code can be embedded to provide dynamic data. In fact, jsp
It is mainly used as a data display template.


2. JSP Execution Process

Web containers process JSP file requests in three phases:
Worker translation stage: JSP files are converted into Java source code by the JSP engine in the Web Container
Compile: the Java source code is compiled into executable bytecode.
Pipeline execution phase: After the container accepts the request from the client, it executes the JSP file compiled into bytecode.
After obtaining the result, the container returns the generated page to the client for display.


Note: after the first request, the Web Container can reuse the compiled bytecode file.
The page is faster than the first time. If you modify the JSP file, the Web Container will re-translate the JSP file and
Compile.


3. JSP page Composition



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.