MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » jspSmartUpload.jar这个包该放在什么位置呢?该如何

jspSmartUpload.jar这个包该放在什么位置呢?该如何用呢(2)

www.MyException.Cn  网友分享于:2013-12-28  浏览:97次


// System.out.println( "ToEmail is [ "+ToEmail+ "] ");
}
if (fi.getFieldName().equals( "QU_BJDSDEM.SendEmailMan "))
{
String CCEmail =fi.getString();
if(CCEmail!=null && ! " ".equals(CCEmail))
{
String[] cc = st.split(CCEmail, "; ");
for(int h=0;h <cc.length;h++)
{
ToCCEmail.add(cc[h]);
}

}else
{
ToCCEmail.add( " ");
}

}
if (fi.getFieldName().equals( "BAS_BJDYJ.txtEmail_title "))
{
EmailTitle =fi.getString( "UTF-8 ");
//String vl= ch.getstring(EmailTitle);
// System.out.println( "EmailTitle is [ "+vl+ "] ");
}
if (fi.getFieldName().equals( "BAS_BJDYJ.txtEmail_content "))
{
Emailcctem =fi.getString( "UTF-8 ");
// System.out.println( "Emailcctem is [ "+Emailcctem+ "] ");
}


String fieldName = fi.getFieldName();
}
// 获得文件名,这个文件名包括路径:
String fileName = fi.getName();
if (!(fileName == null)) {
// 写入文件,暂定文件名为a.txt,可以从fileName中提取文件名:

String uploadFileName = fileName.substring(fileName.trim().lastIndexOf( "\\ ") + 1);



//File GetSizeFile= new File(uploadPath+uploadFileName);
//System.out.println(uploadPath+uploadFileName);
Urllist.add(uploadPath+uploadFileName);

/*FileSize =FileSize+GetSizeFile.length(); */
fi.write(new File(uploadPath + uploadFileName));
pathlist.add(uploadPath+uploadFileName);

}
}
if(Urllist.size()> 0)
{
for(int h=0;h <Urllist.size();h++)
{
File GetSizeFile= new File(Urllist.get(h).toString());
//System.out.println(uploadPath+uploadFileName);
FileSize =FileSize+GetSizeFile.length();
}
}

------解决方案--------------------
我给你发了一个用smartupload上传的例子,自己看下
------解决方案--------------------
呵呵,偶也正在学

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有