May 12, 2021 JSP
The network server needs a JSP engine, which is a container to handle JSP pages. T he container is responsible for intercepting requests to JSP pages. T his tutorial supports JSP development using Apache with embedded JSP containers.
JSP containers work with Web servers to provide the necessary operating environment and other services for the proper operation of JSP, and to correctly identify special elements that are exclusive to JSP Web pages.
The following image shows where JSP containers and JSP files are in Web applications.
The following steps show how a Web server uses JSP to create Web pages:
The steps mentioned above can be represented by the following diagram:
In general, the JSP engine checks that the servlet for the JSP file already exists and that the JSP file was modified before the servlet. I f the JSP file is modified earlier than the corresponding servlet, the container can determine that the JSP file has not been modified and that the servlet is valid. T his makes the entire process more efficient and faster than other scripting languages, such as PHP.
In general, JSP web pages are another way to write a servlet without becoming a Java programming expert. I n addition to the interpretation phase, JSP pages can almost be treated as a normal servlet.