Programming/jsp
jsp buffer
구차니
2014. 3. 27. 19:43
jsp 파일에서 page를 통해 buffer를 설정이 가능하다.
기본값은 8K 에 autoFlush(=true) 하도록 되어 있다.
기본값은 8K 에 autoFlush(=true) 하도록 되어 있다.
<%@ page contentType="text/html; charset=euc-kr"%> <%@ page buffer="16kb" autoFlush="false"%> |
jsp 파일에서 설정된 내용은 java/class로 변환되는데
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html; charset=EUC-KR");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out; |
javax.servlet.jsp.JspFactory.getPageContext() 메소드를 통해 설정하게 된다.
java.lang.Object
extended by javax.servlet.jsp.JspFactory
public abstract PageContext getPageContext(Servlet servlet,
ServletRequest request,
ServletResponse response,
String errorPageURL,
boolean needsSession,
int buffer,
boolean autoflush)
[링크 : http://docs.oracle.com/javaee/5/api/javax/servlet/jsp/JspFactory.html#getPageContext(...)] |