HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Web server will need a JSP engine, which is a container for the JSP page. Container is responsible for intercepting requests for JSP pages. This tutorial uses an embedded Apache JSP container to support the development of JSP.
JSP container and the Web server collaboration, to provide the necessary operating environment and other services for the JSP normal operation and can correctly identify the particular element specific to JSP pages.
The following figure shows the JSP container and JSP files in the Web application in which position.
The following steps show how to use the Web server to create a JSP page:
Steps mentioned above can be represented by the following diagram:
Under normal circumstances, JSP engine checks to see if JSP servlet corresponding to the file already exists, and checks whether the file modification date earlier than the JSP servlet. If the JSP file modification date earlier than the corresponding servlet, then the container can determine the JSP file has not been modified and servlet valid. This makes the whole process compared to other scripting languages (such as PHP) to a number of fast and efficient.
In general, JSP page is another way to write Java servlet instead become a programming expert. In addition to the explanation stage, JSP pages can be almost as an ordinary servlet to be treated.