Difference between static and dynamic include

1. Static inclusion: Use the instruction element in jsp to include a page. During the inclusion process, include the page source code to generate a Servlet file and compile it into a .class file for execution. This inclusion is included before compilation.
 2. Dynamic inclusion: Use the action element in JSP for inclusion. During the execution process, the two resources generate their own Servlet files, and finally include the execution result
    . His inclusion is carried out after compilation.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325990781&siteId=291194637