JSP works

jsp is the essence of a servlet, jsp when first accessed the Web container will be translated into the servlet
index.jsp -> index_jsp.java -> compiled to run index_jsp.class
img

Can be found in the Tomcat work directory, the next visit will be to look at the contents inside have not changed, if changed, the new translation to load
the whole process is called a global web.xml which have to be translated JspServlet
img
img

Guess you like

Origin www.cnblogs.com/mujinjia/p/11206295.html
jsp