This article USES Apache Commons FileUpload Version 1.2.
本文使用的是ApacheCommonsFileUpload版本1.2。
You use the Fileupload component to upload data from client to server.
用户使用Fileupload组件从客户端上载数据到服务器。
Browse to find the commons-fileupload JAR file that you just added, as shown in Figure 7, and click Finish.
浏览找到您刚刚添加的commons -fileuploadJAR文件,如图7所示,并点击Finish。
You are now asked to either restart Tomcat or click the link Hot deploy myportlets-fileupload portlet application.
现在,系统会提示您或者重启Tomcat,或者单击链接Hotdeploymyportlets-fileuploadportletapplication。
We suggest you click the link Hot deploy myportlets-fileupload portlet application. The portlet is then loaded as shown in Figure 1.
我们建议您单击链接hotdeploymyportlets - fileuploadportletapplication。
As we can see, the fileupload component has a corresponding tag hx: fileupload that can be bound to the model via its value attribute.
我们可以看到,fileupload组件有一个相应的hx: fileupload标签,通过其属性值该标签可以与模型绑定。
The cornerstone of your file upload portlet is the Apache Commons FileUpload package (also referred to as FileUpload in this article).
文件上载portlet的基石是ApacheCommonsfileupload包(本文也称之为FileUpload)。
The update() method is called automatically by the FileUpload package to refresh the latest information about how many bytes are transferred.
update()方法自动由FileUpload包调用以刷新有关所传输字节数的最新信息。
In addition to file upload support in a servlet, the Apache Commons FileUpload Version 1.1 package supports file upload in a portlet as well.
除了支持servlet内的文件上载外,ApacheCommonsFileUploadVersion 1.1包还支持portlet中的文件上载。
Rather, you will want to process the content as a stream, or write the entire file to its ultimate location. FileUpload provides simple means of accomplishing both of these.
你很希望使用流来处理文件内容或者写文件实体到它最终的地址。
Rather, you will want to process the content as a stream, or write the entire file to its ultimate location. FileUpload provides simple means of accomplishing both of these.
你很希望使用流来处理文件内容或者写文件实体到它最终的地址。
应用推荐