我用jspsmartupload从数据库下载文件后程序不响应了?2016-7-1
ResultSetrsdown=stmtdown.executeQuery(SELECTFILENAME,FILEDATAFROMBULLETINWHEREID=\+id+\);
下载处理页面(filedown.jsp):
try
db.closeConnection();
关于网友提出的“我用jspsmartupload从数据库下载文件后程序不响应了?”问题疑问,本网通过在网上对“我用jspsmartupload从数据库下载文件后程序不响应了?”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
//Initialization
注:下载完成后我要点击“返回”不响应了,必须刷新后才行。
Connectioncon=db.getConnection();
//iftheresultsetisnotnull
rsdown.close();
}catch(Exceptione)
//Connecttothedatabase
下载页面:
{
//Downloadfield
Stringfilename=rsdown.getString(1);
html
}
描述:即我点击下载完成后,我在点击其他的程序不响应了,但我把下载页面刷新后就没问题了,大家有没有遇到这种情况???代码如下:
}finally
{
stmtdown.close();
{
Stringid=request.getParameter(nid);
//SQLRequest
filename=newString(filename.getBytes(gb2312),iso-8859-1);
pahref=filedown.jsp?nid=97文件1.doc/a/p
}
pahref=#/a
/body
/html
vestinspect.DBConndb=newcom.cic.investinspect.DBConn();
mySmartUpload.initialize(pageContext);
if(rsdown.next())
{
out.println(e.toString());
body
%@pagec/html;charset=GBKlanguage=javaimport=java.sql.,com.jspsmart.upload.%jsp:useBeanid=mySmartUploadscope=pageclass=com.jspsmart.upload.SmartUpload/%
//mySmartUpload.downloadField(rsdown,FILEDATA,application/x-msdownload,filename);
问题:我用jspsmartupload从数据库下载文件后程序不响应了?
%
Statementstmtdown=con.createStatement();