我用JSP做了一个文件上传的(利用了组件), 可是运行后,页面一直显示文件正在传输,而不显示文件传输成功,我弄了一整天了也不知道问题在哪里,愁得都吃不下去饭,明天就得上交了,拜托各位指教 
其中upload.jsp的代码如下:
<%@page contentType="text/html;charset=gb2312"language="java"import="java.sql.*"errorPage="" %>
<%@page import="com.jspsmart.upload.*"%>
<html>
<head>
<title>上载附件</title>
<meta http-equiv="Content-Type"content="text/html;charset=gb2312">
</head>
<body>
  <center>正在上传文件......
<%//上载附件
try
{com.jspsmart.upload.SmartUpload mySmartUpload=new com.jspsmart.upload.SmartUpload();
mySmartUpload.initialize(pageContext); 
mySmartUpload.service(request,response); 
mySmartUpload.upload();  
       com.jspsmart.upload.File myFile = mySmartUpload.getFiles().getFile(0);
String fname=mySmartUpload.getFiles().getFile(0).getFileName();  
String spath="c:\\"+fname;
//将文件保存在服务器端 
myFile.saveAs(spath,mySmartUpload.SAVE_VIRTUAL); out.println("已经成功上传了文件,请查看<a href=upload/"+spath+">这里</a>,看文件是否上传成功");
}
catch(Exception e)
{
e.printStackTrace();
}%>
<a href=FileUpload.html>重新上传</a>
</body>
</html>