因为Tomcat在编译后会调用response.getWriter(),而这个方法是和response.getOutputStream()相冲突的!所以会出现以上这个异常: getOutputStream() has already been called for this response] with root cause
解决方法,在jsp的结尾加上
```html
在这里插入代码片<%
try{
...........
os=response.getOutputStream();
response.flushBuffer();
out.clear();
out=pageContext.pushBody();
}catch(Exception e){
out.println(e.toString());
}
%>