-=-= 컴퓨터 =-=-/웹프로그래밍

[JSP] getOutputStream() has already been called for this response

자게남 2013. 6. 13. 11:11

파일(엑셀) 다운로드시 위와 같은 오류 발생시 추가

 

out.clear();

out = pageContext.pushBody();

pageContext.forward(fileName);

 

 

JSP 기본 OutputStream 객체를 가지고 있음

스펙상 JSP 서블릿에서 처리하는게 원칙이지만

위와같이 하면 가능함.