jsp:include
<jsp:include page="/include.jsp"></jsp:include>动作
<%@ include file="/footer.html"%>//指今
jsp:forward
1 <jsp:forward page="/include.jsp" />
2 <%
RequestDispatcher rd=request.getRequestDispatcher("/imclude.jsp");
rd.forward(request,response);
%>
1和2结果相同
<jsp:include page="/include.jsp"></jsp:include>动作
<%@ include file="/footer.html"%>//指今
jsp:forward
1 <jsp:forward page="/include.jsp" />
2 <%
RequestDispatcher rd=request.getRequestDispatcher("/imclude.jsp");
rd.forward(request,response);
%>
1和2结果相同