这是实现下载的页面文件
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,com.jspsmart.upload.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
     String    fileName=null;
     fileName=request.getParameter("fname");
     SmartUpload su = new SmartUpload();
     su.initialize(pageContext);
     su.setContentDisposition(null);
     su.downloadFile("C:\\Tomcat5.0\\webapps\\myweb\\yuletiandi\\dianyingwenjianjia\\"+fileName);
%>
</body>
</html>执行时候抱错如下:
type Status reportmessage C:\Tomcat5.0\webapps\myweb\yuletiandi\dianyingwenjianjia\top002.com.txt (系统找不到指定的路径。)description The requested resource (C:\Tomcat5.0\webapps\myweb\yuletiandi\dianyingwenjianjia\top002.com.txt (系统找不到指定的路径。)) is not available.试了编码转换也不行,不知道问题在哪,请大家帮帮忙!!!