标签: internet-explorer pdf servlets
要在保存时保存带文件名的pdf为自动,请立即查看pdf,就像使用Struts 1的doAction.do一样
response.setHeader(“Content-Disposition”,String.format(“inline;”+“filename = \”%s \“”,downLoadFile.getName()));
内联在IE中不起作用,但在chrome中工作得很好