jsp dynamic tags include include

<jsp:include page=""></jsp:include>

This command is also included but with:

<%@ include file="/hel.jsp"%>

This is different. The following is a static inclusion. When running, Tomcat will merge hei.jsp and lo.jsp into a java file, and then compile it

But the above is a call, and the hei.jsp file is dynamically included through the lo.jsp file, if:

	<jsp:include page="/hell.jsp?name=renliang"></jsp:include>

Then the transmitted parameters can be received in hei.jsp and displayed, such as: the code in hei.jsp:

<%
		String name  = request.getParameter("name");
	%>
	<hr>
	<%=name %>
belongs to the call. . .

Guess you like

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