---这里是页面掉用下载<a href="#" onclick="window.location.href ='/FLECM/common/attachFileAction.do?method=downloadMultiFile&path='+encodeURI('${attach[0]}');" class="attachment">${attach[1]}</a> //后台下载函数
// 下载邮件附件 添加到 AttchFileAction
@RequestMapping(params = "method=downloadMultiFile")
private ModelAndView downloadMultiFile( @RequestParam("path")String path) {
path = StringUtil.unescape(path);
return MvcUtil.mimeModelAndView(path);
}
转载于:https://www.cnblogs.com/seein/archive/2012/04/04/2461215.html