java.lang.IllegalStateException:getOutputStream() has alread

问题描述:

java.lang.IllegalStateException:getOutputStream() has already been called for this response
这是什么错误?源代码:生成验证码
1个回答 分类:综合 2014-12-15

问题解答:

我来补答
esponse的outputStream已经被调用获取过了,不能重复调用response.getOutputStream方法.
这是在JSP里写的代码吧?JSP里有一个out变量,代表response的outputStream,试一试
ImageIO.write(image,"JPEG",out);
 
 
展开全文阅读
剩余:2000