带进度条的文件上传(java+ajax源码) 在写代码的时候,还要用到关于servlet的包servlet-api.jar。 写完后调试的过程中,老报错:java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream,后来一查才知道少了commons-io-1.2.jar,加上后,就ok了。 关于获取及显示进度部分,用了我原来自己写的一个ajax的应用架构,从中抽取了部分代码出来,注意,js文件只适用于UTF-8编码的页面,因为现在我只写UTF-8编码的页面了,国际化方便。 progressUpload.jar中,包含了commons-fileupload-1.1.1.jar,servlet-api.jar,commons-io-1.2.jar,在progressUpload.jar中,还包含一个属性文件,里面是一些默认配置,可根据自己的需要修改。 由于有源码,怎么用可以自己看源码,此外,那个例子中也写了,在此不再赘述。例子中只取到了FileItem,再将item保存一下就ok了,示例代码: File upFile = new File(remoteFilePath) try \{ item.write(upFile) fileInfo.put("infotip", "上传成功.") } catch (java.lang.Exception e) \{ fileInfo.put("infotip", "上传失败.") }
上传时间: 2015-09-01
上传用户:ccclll
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.
标签: Incorporated subsidiaries Instruments corrections
上传时间: 2013-12-24
上传用户:haohaoxuexi
The LM158 series consists of two independent, high gain, internally frequency compensated operational amplifiers which were designed specifically to operate from a single power supply over a wide range of voltages. Operation from split power supplies is also possible and the low power supply current drain is independent of the magnitude of the power supply voltage.
标签: compensated independent internally frequency
上传时间: 2014-01-09
上传用户:zwei41
采用jsp+servlet+javabean,jsp负责少量的页面处理,以servlet为主。 结构清晰明了,未对页面做美工处理,因此html和javascript代码很少, 非常适合作为java入门的例程,特别是对servlet部分。 开发调试平台为jbuilder9+tomcat4,在resin下测试通过。 数据库平台为ms sql server,在mysql下测试通过,但要改部分代码 数据库连接池为apache组织下jakarta项目组开发的commons-dbcp 1.0
上传时间: 2015-09-25
上传用户:wab1981
Embest S3C44B0X Evaluation Board RTC Test Example RTC Check(Y/N)? y Set Default Time at 2004-12-31 FRI 23:59:59 Set Alarm Time at 2005-01-01 00:00:01 ... RTC Alarm Interrupt O.K. ... Current Time is 2005-01-01 SAT 00:00:01 RTC Working now. To set date(Y/N)? y Current date is (2005,01,01, SAT). input new date (yy-mm-dd w): 5-2-23 3 Current date is: 2005-02-23 WED RTC Working now. To set time(Y/N)? y Current time is (00:00:21). To set time(hh:mm:ss): 19:32:5 Current Time is 2005-02-23 WED 19:32:
标签: Evaluation RTC S3C44B0X Default
上传时间: 2014-01-03
上传用户:baiom
A general technique for the recovery of signicant image features is presented. The technique is based on the mean shift algorithm, a simple nonparametric pro- cedure for estimating density gradients. Drawbacks of the current methods (including robust clustering) are avoided. Feature space of any nature can be processed, and as an example, color image segmentation is dis- cussed. The segmentation is completely autonomous, only its class is chosen by the user. Thus, the same program can produce a high quality edge image, or pro- vide, by extracting all the signicant colors, a prepro- cessor for content-based query systems. A 512 512 color image is analyzed in less than 10 seconds on a standard workstation. Gray level images are handled as color images having only the lightness coordinate
标签: technique presented features recovery
上传时间: 2015-10-14
上传用户:410805624
Welcome to the ASTA 3 Help Tutorials. These are documented tutorials that included new user jump start, to file sends to server techniques with non-database servers showing how to use Providers and ServerMethods. A Current version of these tutorials can always be found on line
标签: documented Tutorials tutorials included
上传时间: 2013-12-18
上传用户:gyq
ava 项目中,当需要高性能上传文件时,往往就需要依靠组件,而不是手写的servlet了,一般的选择包括jakarta commons-fileupload以及smartupload,由于后者在上传大文件时往往会出错,另外对中文支持一般,笔者采用了前者。
上传时间: 2015-10-28
上传用户:myworkpost
t transistor has the characteristics of components of the sensor real-time measurement of voltage and current signals through, obtained quality factor correction circuit for the feedback and the feedback time, IBM used the feedback field effect transistor implementation, in order to achieve quality factor correction circ
标签: characteristics measurement transistor components
上传时间: 2014-12-22
上传用户:杜莹12345
These two classes show an extremely simple example of java.net socket programming. They implement the Unix daytime protocol, an extremely simple protocol that consists entirely of the server sending its current local time and date to the client as an ASCII string. The server, to keep it very simple, does not use multiple threads. This code requires JDK 1.1 or later, but can easily be adapted to JDK 1.0.
标签: programming extremely implement classes
上传时间: 2015-11-16
上传用户:jennyzai