1.在经典的框架中填充页面时

  

要填充2处的页面,2处为内容页面,是另外的一个JSP页面

2.左侧页面代码

  

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<script type="text/javascript">
var loadPage = function(pageName){
var basePath = $("#basePath").val(); if(pageName=="blockZipUpload"){
$("#rightpage").css("padding-top","0");
$("#rightpage").html("<iframe style='border:none;width:100%;height:100%;' id='sacQuery_id' src='"+basePath+"pages/reportMessageQuery/reportMessageQuery.jsp'></iframe>");
} } </script>
<style type="text/css">
#leftpage{
height:600px;
width:12%;
float:left;
border:solid 1px #CCC;
margin:0;
text-align:center;
padding:0px;
background-color:rgb(235,245,255);
}
.left_ul{
list-style-type:none;
margin:0;
text-align: left;
width:100%;
padding-top:20px;
padding-left:30px;
padding-right:0px;
padding-bottom:0px;
}
.left_ul li{
line-height:32px;
text-align:left;
}
.left_ul li a{
text-decoration:none;
color:#333;
font-size: 14px;
height:32px;
}
.left_ul li a:hover {
color : #7a9833;
background : inherit;
text-decoration : underline;
} </style> <div id="leftpage">
<ul class="left_ul">
<li><a href="#" onclick="loadPage('blockZipUpload');">快速上传测试</a></li>
</ul> </div>

3.右侧代码
  

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
out.write("<input id='basePath' type='hidden' value='"+basePath+"'/>");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html>
<head>
<title>******</title>
<style type="text/css">
body{
width: 100%;
height:600px;
margin: 0 auto;
border:0;
padding:0;
font-family:"微软雅黑";
} #rightpage{
width:87%;
height:100%;
border:0px;
float:left;
padding-top:160px;
}
.welcome_img{
margin:0 auto;
display: block;
} table{
padding:0;
margin:0;
border-collapse:collapse;
border-spacing:0;
width:20%;
}
table td{
border:1px solid #a9bab9;
width:33.3%;
box-sizing:border-box;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
height:40px;
text-align:center;
font-size:12px;
color:#273335;
overflow:hidden;
background:#d4e3e7;
}
table .th td{
font-size:14px;
background:#bfdcde;
font-weight:bold;
}
table .trbg td{
background:#faff64;
} </style> <script type="text/javascript" src="../../js/jquery-1.11.3.min.js"></script>
<script type="text/javascript"> </script>
</head>
<body>
<%@include file="../commons/head.jsp" %>
<%@include file="../commons/leftpage.jsp" %>
<div id="rightpage">
<img class="welcome_img" src="../images/welcome.png">
</div> </body>
</html>

4.头部模块代码
  

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<script type="text/javascript" src="../js/jquery-1.11.3.min.js"></script>
<script type="text/javascript"> </script>
<style type="text/css">
#headpage{
height:120px;
width:100%;
border:1px solid #ccc;
background-image:url('../images/bj.jpg');
}
</style> <div id="headpage">
</div>

5.pages/reportMessageQuery/reportMessageQuery.jsp 即为需要展示的JSP页面路径。

  

  

最新文章

  1. switch与ifelse的效率问题
  2. UVA 1328 - Period KMP
  3. System.InvalidOperationException: Sequence contains no elements
  4. 高放的c++学习笔记之函数基础
  5. Lambda 笔记
  6. Altera CYCLONE III FPGA BGA布线
  7. Node.js入门第一天
  8. 201521123008 《Java程序设计》 第九周学习总结
  9. dom4j解析xml文档全面介绍
  10. linux Page cache和buffer cache正解
  11. http协议发送post请求
  12. ipconfig命令查ip的时候给别人看有危险吗
  13. 牛客练习赛32-D-MST+tarjin割边
  14. vue2+webpack 开发环境配置
  15. mysql 多表查询先排序,然后再取分组&lt;mysql 先order by,然后再取group by分组&gt;
  16. http链接的性能测试工具httping
  17. 搭建互联网架构学习--003--maven以及nexus私服搭建
  18. 手机imie号介绍使用
  19. 23 DesignPatterns学习笔记:C++语言实现 --- 1.2 AbstractFactory
  20. mysql返回字符串在另外一个字符串中第n次出现的方法。

热门文章

  1. 解决AJAX跨域:1、利用JSONP;2、JS设置Header
  2. http://blog.csdn.net/xingfuzhijianxia/article/details/6433918
  3. LeetCode OJ Minimum Depth of Binary Tree 递归求解
  4. Spark Streaming源码解读之流数据不断接收和全生命周期彻底研究和思考
  5. [译]ES读写文档时shard-replication模型
  6. 数据结构之---C语言实现线索二叉树
  7. Android avd XDM authorization key matches an existing client
  8. BitConverter.GetBytes(int)和BitConverter.ToString 方法 (Byte[])
  9. 用开源NGINX-RTMP-MODULE搭建FLASH直播环境
  10. 小程序show-confirm-bar完成按钮不能隐藏