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