Operation Principle
##When the jsp page (code) is accessed for the first time, A request will be made to a servlet container (tomcat, etc.). The servlet container must first convert the jsp page (code) into servlet code (.java), then compile it into a .class file and then call it. When accessing the jsp page (code) again, skip the translation and compilation process and call it directly.
##web server {TOMCAT (JSP), WEBLOGIC (JSP) } application serverWeb server transmission (serves ) page allows the browser to browse, but the application server provides methods that the client application can call. To be more precise, you can say: Web servers specialize in handling HTTP requests, but application servers serve business logic to applications through many protocols.
The above is the detailed content of How to run jsp code. For more information, please follow other related articles on the PHP Chinese website!