<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"
%>
<%@ page import="java.text.*" %>
<%
String path = request.getContextPath();
%>
<!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 here</title>
</head>
<body>
<%
out.println("<h2>啦啦1</h2>");
out.println("窗前明月光<br>");
out.println("窗前明月光<br>");
out.println("窗前明月光<br>");
%>
缓冲区大小:<%=out.getBufferSize() %>字节<br>
缓冲区剩余大小:<%=out.getRemaining() %>字节<br>
是否自动清空缓冲区:<%=out.isAutoFlush() %><br>
</body>
</html>
<body>
<%
out.println("<h2>啦啦1</h2>");
out.println("窗前明月光<br>");
out.flush();
//out.clear();//这里会抛出异常,下面代码不会继续执行
//out.clearBuffer();//不会抛异常,继续执行
out.println("窗前明月光<br>");
out.println("窗前明月光<br>");
%>
缓冲区大小:<%=out.getBufferSize() %>字节<br>
缓冲区剩余大小:<%=out.getRemaining() %>字节<br>
是否自动清空缓冲区:<%=out.isAutoFlush() %><br>
</body>