这是JSP种引用的一些方式,这只是body中的部分,具体的请结合实际的项目做链接:
<body style="background-color:pink">
<form action="">
<h1>下面显示的是自定义标签中的内容</h1>
<br><br>
<br>
<SPAN style="BACKGROUND-COLOR: rgb(255,255,255)"><!-- 第一种:jstl import --></SPAN>
<div style="color:red;">
<c:import url="inlayingJsp.jsp"></c:import>
</div>
<SPAN style="BACKGROUND-COLOR: rgb(255,255,255)"><!-- 第二种:jsp include指令 --></SPAN>
<div>
<%@ include file="inlayingJsp.jsp" %>
</div>
<SPAN style="BACKGROUND-COLOR: rgb(255,255,255)"><!-- 第三种:jsp include动作 --></SPAN>
<div>
<jsp:include page="inlayingJsp.jsp" flush="true"/>
<!-- 传入参数时用 <jsp:param name="parameterName" value="{parameterValue | EL表达式 }" /> -->
</div>
</form>
</body>
其中还有别的引用方式就不在这里累述了。