在顶部
<%
String path = request.getContextPath();
String basePath =request.getScheme()+
"://"
+request.getServerName()+
":"
+request.getServerPort()+path+
"/"
;
%>
在body中
<%@
include
file
=
"head.jsp"
%>
中间代码....
<%@
include
file
=
"foot.jsp"
%>