jsp页面js代码: function downloadAttached(){ var id = []; id.push(infoid); var options = {}; options.action = "${pageContext.request.contextPath}/DocumentController/downloadattached"; options.argname1="id"; options.argvalue1=id.join(','); f…
有时候会有多个附件一起下载的需求,这个时候最好就是打包下载了 首先下面这段代码是正常的单个下载 public void Download(@RequestParam("file_path") String file_path, HttpServletResponse response) { logger.info("try to download file, the filePath : " + file_path); int i = file_path.lastI…