关于struts1中定制的PDF文件名

时间:2016-09-20 10:09:54

标签: internet-explorer pdf servlets

要在保存时保存带文件名的pdf为自动,请立即查看pdf,就像使用Struts 1的doAction.do一样

response.setHeader(“Content-Disposition”,String.format(“inline;”+“filename = \”%s \“”,downLoadFile.getName()));

内联在IE中不起作用,但在chrome中工作得很好

0 个答案:

没有答案