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" %>

猜你喜欢

转载自blog.csdn.net/Love_codes/article/details/80791436
jsp