菜菜求教!关于文件下载时参数传递问题!

[复制链接]
查看11 | 回复0 | 2006-3-23 14:21:00 | 显示全部楼层 |阅读模式
我在下载文件download.jsp中

String userfile = request.getParameter("userfile&quot

;
byte x[]=userfile.getBytes("ISO-8859-1&quot

;
userfile=new String(x);
String downfile="/upload/"+userfile;


// Initialization
mySmartUpload.initialize(pageContext);
// Download file
mySmartUpload.downloadFile(downfile);

为啥在index.jsp页面

[url=]">[/url]
点右键目标另存为的时候下载的文件不是userfile取得的文件名
而是download.jsp
貌似downfile参数未起作用
但我查SmartUpload.class中
public void downloadFile(String sourceFilePathName) throws SmartUploadException, IOException, ServletException { }
String sourceFilePathName 应该没错啊????
那位高人指点一下不胜感激啊!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行