poi操作EXCEL,下载时,怎么在浏览器里直接打开了啊?
我是一个提交页面,提交到一个SERVLET,然后输出下载
.......
fileName=fileName+".xls";
response.setContentType("application/file");
response.setHeader("Content-Disposition","filename="+fileName);
ServletOutputStream out = response.getOutputStream();
wb.write(out);
out.close();
我以前这样设置过的啊,都可以!现在却直接是在浏览器里打开,我把fileName改个后缀
.xls1就OK了,是浏览器问题还是BUG问题,怎么解决,请教老鸟!