109. The difference between static and dynamic inclusion

6. The difference between static and dynamic inclusion

1) Different syntax

Static include syntax: <%@inclue file="included page"%>

Dynamic include syntax: 

2) Different parameter transfer

Static inclusion cannot pass parameters to the included page

Dynamic inclusion can use the jsp:param tag to pass parameters to the included page

3) Different principles

Static inclusion: merge first and then translate

Dynamic inclusion: translate first and then merge

Guess you like

Origin blog.csdn.net/weixin_43206161/article/details/111920073
Recommended