如何上传文件 给我发邮件,我给你一篇我在《开放系统世界》发表的关于文件上传的文章![email protected] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ page contentType="text/html; charset=gb2312" buffer="1" autoFlush="true"%><%@ page import="com.jspsmart.upload.*" %><body><% SmartUpload upload = new SmartUpload(); upload.initialize(pageContext); upload.upload(); for (int i=0;i<upload.getFiles().getCount();i++){ com.jspsmart.upload.File newFile = upload.getFiles().getFile(i); if (!newFile.isMissing()) { newFile.saveAs("d:/websrc/upload/" + newFile.getFileName());//修改你的存储路径 out.println("FieldName = " + newFile.getFieldName() + "<BR>"); out.println("Size = " + newFile.getSize() + "<BR>"); out.println("FileName = " + newFile.getFileName() + "<BR>"); out.println("FileExt = " + newFile.getFileExt() + "<BR>"); out.println("FilePathName = " + newFile.getFilePathName() + "<BR>"); out.println("ContentType = " + newFile.getContentType() + "<BR>"); out.println("ContentDisp = " + newFile.getContentDisp() + "<BR>"); out.println("TypeMIME = " + newFile.getTypeMIME() + "<BR>"); out.println("SubTypeMIME = " + newFile.getSubTypeMIME() + "<BR>"); } }%></body> 求大大帮忙! webservices返回一个List类型该怎么办? http协议返回一个文件流 怎么把list 的记录打出来 HTTP Error 503 - Service unavailable struts2如何处理hibernate中的component JSP 连接数据库 的字符串是什么 -- windows 身份验证 linux系统 不能生成缩略图 关于jsp中类的编译问题 TimeZone这是做什么的东西 请问jsp开发中一个非常有用的问题 javabean中的连接数据库的问题。
<body><%
SmartUpload upload = new SmartUpload();
upload.initialize(pageContext);
upload.upload();
for (int i=0;i<upload.getFiles().getCount();i++){
com.jspsmart.upload.File newFile = upload.getFiles().getFile(i); if (!newFile.isMissing()) { newFile.saveAs("d:/websrc/upload/" + newFile.getFileName());//修改你的存储路径
out.println("FieldName = " + newFile.getFieldName() + "<BR>");
out.println("Size = " + newFile.getSize() + "<BR>");
out.println("FileName = " + newFile.getFileName() + "<BR>");
out.println("FileExt = " + newFile.getFileExt() + "<BR>");
out.println("FilePathName = " + newFile.getFilePathName() + "<BR>");
out.println("ContentType = " + newFile.getContentType() + "<BR>");
out.println("ContentDisp = " + newFile.getContentDisp() + "<BR>");
out.println("TypeMIME = " + newFile.getTypeMIME() + "<BR>");
out.println("SubTypeMIME = " + newFile.getSubTypeMIME() + "<BR>"); } }
%>
</body>