网站首页(manager.jsp)
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>后端图书首页</title>
</head>
<frameset rows="15%,*">
<frame
src="${pageContext.request.contextPath}/serverJsp/head.jsp"
name="head"></frame>
<frameset cols="15%,*">
<frame src="${pageContext.request.contextPath }/serverJsp/left.jsp" name="left"></frame>
<frame
src="${pageContext.request.contextPath }/serverJsp/body.jsp"
name="body"></frame>
</frameset>
</frameset>
</html>
网站标题 (head.jsp)
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>后台head</title>
</head>
<body>
<h1 align="center" style="margin-top: 30px;">购书网站后台管理</h1>
</body>
</html>
网站左侧页面:(left.jsp)
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>后台left页面</title>
</head>
<body>
<a href="${pageContext.request.contextPath }/serverJsp/addCategory.jsp" target="body">添加分类</a> <br/><br/>
<a href="${pageContext.request.contextPath }/category.do?flag=findAll" target="body">查看分类</a> <br/><br/>
<a href="${pageContext.request.contextPath }/book.do?flag=ToaddPage" target="body">添加图书</a> <br/><br/>
<a href="${pageContext.request.contextPath }/book.do?flag=findAll" target="body">查看图书</a> <br/><br/>
</body>
</html>
FR:海涛高软(QQ技术交流群:386476712)