这是我添加了JSP头之后的代码,加了后,就无法显示了。但是在地址栏单独输入top.jsp、left.jsp这些的地址又能访问
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title</title>
</head>
<body>
<frameset rows="80,*">
<frame name="top" src="${pageContext.request.contextPath }/frame/top.jsp"/>
<frameset cols="150,*" id="main">
<frame src="${pageContext.request.contextPath }/frame/left.jsp"/>
<frame name="right" src="${pageContext.request.contextPath }/frame/right.jsp"/>
</frameset>
</frameset>
</body>
</html>下面的是原本的HTML,<frameset rows="80,*"> <frame name="top" src="frame/top.html"> <frameset cols="150,*" id="main"> <frame src="frame/left.html"> <frame name="right" src="frame/right.html"> </frameset></frameset>
添加回答
举报
0/150
提交
取消