response.addHeader("Content-Disposition", "attachment;filename=" + new String(filename.getBytes()));
OutputStream out = new BufferedOutputStream(response.getOutputStream());
response.setContentType("application/octet-stream");
....... out.flush();
out.close();下载完成后,需要刷新页面,我使用spring的ModelAndView mav = new ModelAndView();
mav.setViewName("ListController.action");执行后就会报错:
getOutPutStream() has already been called for this response..不知道如何解决,希望大家帮忙啊. 谢谢.
OutputStream out = new BufferedOutputStream(response.getOutputStream());
response.setContentType("application/octet-stream");
....... out.flush();
out.close();下载完成后,需要刷新页面,我使用spring的ModelAndView mav = new ModelAndView();
mav.setViewName("ListController.action");执行后就会报错:
getOutPutStream() has already been called for this response..不知道如何解决,希望大家帮忙啊. 谢谢.
解决方案 »
- Java连接Oracle的事务问题
- Struts2自定义转换错误 No result defined for action com.test.PointAction and result input
- 关于jstl
- 获取JSP中的数据!
- 自定义标签库taglib问题?请高手指点啊!
- 单点登录的问题
- 看看这个jsp做的网站
- jsp读取sql server数据问题
- 如何在ACCESS 2000中插入日期/时间型的数据?
- 一个奇怪又简单的问题
- 求助org.apache.jasper.JasperException: Unable to compile class for JSP!!!!!!!
- android和J2EE你会选择哪个?
自己顶一下。