kevinlee0755 发表于 2013-2-5 09:45:36

tomcat5下jsp出现getOutputStream() has already been called for this response

转自:http://blog.csdn.net/alexwan/archive/2007/02/13/1508871.aspx

jsp编译成servlet 有
finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
释放资源,调用request.getWriter();
与response.getOutputStream();冲突

解决:用完流调用
out.clear();
out = pageContext.pushBody();
页: [1]
查看完整版本: tomcat5下jsp出现getOutputStream() has already been called for this response