jsp
Spring MVC jsp 嵌入子页面的两种方式
使用 jsp 渲染页面时,可以在页面中嵌入(include)其他 jsp 页面。嵌入子页面有两种方式: * 静态嵌入:<% @include file="include.jsp" %> * 动态嵌入:<jsp:include page="include.jsp" /> 静态嵌入 <% @include file="include.jsp" %>。 静态嵌入支持 jsp、html、xml 以及纯文本。 静态嵌入在编译时完成,相当于直接将子页面的文本插入到 include 标签所在的位置。子页面可直接使用父页面中的变量。 动态嵌入 <jsp: