



JSP를 실행하면 서블릿이 생성된다!

<jsp:forward>기능과 에러 페이지 처리 기능이 가능<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page buffer="2kb" autoFlush="true" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
for (int i=0; i<2000; i++){
out.print("안녕 ");
}
%>
</body>
</html>
✅ <%@ page buffer="2kb" autoFlush="true" %> : 버퍼 설정

오류가 발생하게 된다. 따라서
autoflush = "true"로 설정해두고 하자!