标题:
jsp中通用模版的引用 include的用法(3)
[打印本页]
作者:
look_w
时间:
2019-4-19 20:39
标题:
jsp中通用模版的引用 include的用法(3)
ps:index.jsp页面完整代码
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<base href="<%=basePath%>"/>
<title>My JSP 'vera.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<link rel="stylesheet" type="text/css" href="css/header.css"/>
<link rel="stylesheet" type="text/css" href="css/footer.css"/>
<link rel="stylesheet" type="text/css" href="css/left.css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/left.js"></script>
<style type="text/css">
html {
margin: 0px;
padding: 0px 0px 0px 5px;
}
body {
color: #3C3C3C;
background-color:#FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin: 0px;
padding: 0px;
}
div{
display: block;
}
div.center{
max-width:1140px;
min-width:960px;
margin:0pt auto;
z-index:99
}
div.center{
width:910px;
min-width:800px;
}
</style>
</head>
<body>
<div class="center">
<%@ include file="header.jsp"%>
<%@ include file="left.jsp"%>
<%@ include file="footer.jsp"%>
</div>
</body>
</html>
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/)
Powered by Discuz! 7.0.0