ssh jxl导出Excel时报错:getOutputStream() has already been called for this response
来源:互联网 发布:fedora 26 yum 编辑:程序博客网 时间:2024/06/15 22:35
项目中用到struts2容器管理servlet.不是单纯的直接用servlet.
workbook.write(os);
os.flush();
os.close();
return "SUCCESS";
在我的action中用是这样处理最后的传出.但是报出了: java.lang.IllegalStateException: getOutputStream() has already been called for this response的错误.
Struts2方法之间调用引起的。
因为:每个方法都返回的是一个Action对象,而response是Action对象参数,
所以就会使response冲突!
故,将最后的return "SUCCESS"改为 return null .
不将其交由sturts2管理.就不会报异常了
- ssh jxl导出Excel时报错:getOutputStream() has already been called for this response
- ssh jxl导出Excel时报错:getOutputStream() has already been called for this response
- 导出EXCEL:getOutputStream() has already been called for this response
- getOutputStream() has already been called for this response 下载excel
- 导出Excel出现getOutputStream() has already been called for this response异常的原因
- Excel导出时,后台抛出getOutputStream() has already been called for this response异常
- 解决Excel导出时getOutputStream() has already been called for this response异常
- (生成excel)解决getOutputStream() has already been called for this response java getOutputStream()的问题
- java_lang_IllegalStateException getOutputStream() has already been called for this response
- getOutputStream() has already been called for this response 的解决方法
- getOutputStream() has already been called for this response
- getOutputStream() has already been called for this response的解决方法
- getOutputStream() has already been called for this response 异常处理
- getOutputStream() has already been called for this response
- getOutputStream() has already been called for this response
- getOutputStream() has already been called for this response
- getOutputStream() has already been called for this response 的解决方法
- getOutputStream() has already been called for this response
- PHP Session机制解惑
- HDU1160——FatMouse's Speed
- LZ78算法
- 快速幂
- sqoop导入数据到hive
- ssh jxl导出Excel时报错:getOutputStream() has already been called for this response
- Android联系人2--联系人查询
- LZ编码
- 数据库连接-属性文件-XML配置文件
- Oracle SQL*Loader
- 推荐算法(2)——常用的预测算法
- smartform 打印预览时转PDF查看
- git查看文件历史
- 认识php对象