There is no solution for frameset layout when the src path page in frame is loaded

  • 2020-06-12 10:16:49
  • OfStack

Solution: Remove the body node from the page with the following error code
 
<%@ page language="java" contentType="text/html; charset=GB18030" 
pageEncoding="GB18030"%> 
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<base href="<%=basePath%>"> 
<meta http-equiv="Content-Type" content="text/html; charset=GB18030"> 
<title> The home page </title> 
</head> 
<body> 
<frameset rows="15%,70%,15%" frameborder="yes" > 
<frame scrolling="auto" src="IndexTop.jsp"></frame> 
<frame scrolling="auto" src="IndexMain.jsp"></frame> 
<frame scrolling="auto" src="IndexBottom.jsp"></frame> 
</frameset> 
</body> 
</html> 

Since frameset is a frame structure, don't use body for layout by taking up the entire page

Related articles: