普通文件的下载函数

---这里是页面掉用下载
<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);
	}

你可能感兴趣的:(String,Class,Path)