出现getOutputStream() has already been called for this response问题解决

出现getOutputStream() has already been called for this response问题解决
下载文件的时候报错,原因:Struts方法之间调用引起的。
因为:每个方法都返回的是一个ActionForward对象,而response是ActionForward对象参数,所以就会使response冲突!
所以解决方法: 方法结束返回空 return null;

你可能感兴趣的:(出现getOutputStream() has already been called for this response问题解决)