页面用ext js做的、
这个是点击下载时把文件名传入后台
window.location.href = '/portal/download.do?method=download&downFlag=1&fileName='+ fileName;后台Action代码
public ActionForward download(ActionMapping actionMapping,
ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
String classPath = null;
try {
classPath = java.net.URLDecoder.decode(
Global.downloadEnv.getPath(), "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
classPath = Global.downloadEnv.getPath();
}
DownloadTool dt = new DownloadTool();
dt.setDownLoadDir(classPath);
String downloadFileName = request.getParameter("fileName"); 
if(downloadFileName.indexOf("../") == -1){ 
String decodeStr = new String(downloadFileName);
try {
downloadFileName = new String(downloadFileName
.getBytes("ISO-8859-1"), "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
downloadFileName = decodeStr;
}
dt.downLoadFile(downloadFileName, response);

return null;
}windows环境下士好用的 但是到了linux下文件名有中文的就没有响应了,求高手赐教,小弟不胜感激!!