1. 程式人生 > >jsp引入頭部.jsp和尾部.jsp

jsp引入頭部.jsp和尾部.jsp

在頂部 <% String path = request.getContextPath(); String basePath =request.getScheme()+ "://" +request.getServerName()+ ":" +request.getServerPort()+path+ "/" ; %> 在body中 <%@ include file = "head.jsp" %>
中間程式碼....


<%@
include file = "foot.jsp" %>