下一个jspsmartupload,看它自带的例子
http://www.jspsmart.com 下载
记得给分啊!!!
http://www.jspsmart.com 下载
记得给分啊!!!
解决方案 »
- 大侠们,有谁做过视频分享网站的,帮帮忙
- dddddz 请进来接分,感谢你的帮助
- JAVA编码方式的疑问
- jbuilder2007怎么开发struts?
- java 调用有返回参数的存储过程
- struts 中<logic:iterate>标签取数据的问题!!!大家帮帮忙!!!
- Crystal Report 的日期格式问题:
- 关于: Vector aa=new Vector(3);
- 请问怎么在 dreamweaver里面改变table的颜色,以及字体的颜色啊?
- 对数据库的查询结果resultset进行修改后,怎么将修改的信息传回给数据库
- 用JSP如何实现文件的FTP上传?
- 在jsp中要选择oralce数据库中的,记录数最大的语句怎么写?记录数是我输入的
<%@ page language="java" import="com.jspsmart.upload.*"%> <jsp:useBean id="mySmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload" /> <HTML> <BODY BGCOLOR="white"> <H1>jspSmartUpload : Sample 1</H1> <HR> <% // Variables int count=0; // Initialization mySmartUpload.initialize(pageContext); mySmartUpload.setTotalMaxFileSize(100000); // Upload mySmartUpload.upload(); try { // Save the files with their original names in the virtual path "/upload" // if it doesn't exist try to save in the physical path "/upload" count = mySmartUpload.save("/upload"); // Save the files with their original names in the virtual path "/upload" // count = mySmartUpload.save("/upload", mySmartUpload.SAVE_VIRTUAL); // Display the number of files uploaded out.println(count + " file(s) uploaded."); } catch (Exception e) { out.println(e.toString()); } %> </BODY> </HTML>