进度条的文件上传? [英] Progress bar for File Uploading?

查看:191
本文介绍了进度条的文件上传?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用servlet来上传文件在我的Web应用程序。我想显示进度条,同时上传。我已经经历了一些Ajax + Progresslistener例子去,人们的此处

I am using servlets to upload files in my web application. I want to show progress bar while uploading. I have went through some Ajax+Progresslistener examples, one here.

在doPost()方法,他们创建了一个会话对象并设置一个新的属性监听器。除此之外,我的previous code和教程$ C $下doPost()方法是一样的。

In the doPost() method they creates a Session Object and Sets a new attribute Listener. Apart from that my previous code and tutorials code for doPost() method is same.

我的问题是,他们正在设置监听器属性一次,开始时。如何将经常更新的读取动作(我是新来这个,所以,我的问题可能不合理)

My question is they are setting the Listener Attribute one time, at the beginning. How it will update the bytesRead frequently(I am new to this, So, my questions maybe unreasonable)

在doGet()方法,他们检索监听器属性,并从中提取所需的信息。

In the doGet() method they retrieve the Listener Attribute and Extracts the needed information from it.

这部分还,我不能够理解。他们不执行ProgressListener类(搜索,使我这个班)。

我知道有些DWR。所以,我可以用它来从服务器获取数据传送的信息,如果我理解的服务器端程序更新数据传输。

I know some DWR. So, i can use it to get the data transfer information from server, if i understood server side process to update the data transfer.

难道任何一个解释我的服务器端程序?

Shall any one explain me the server side process?

或者任何链接或建议,将鸭preciative的那一刻!

Or Any Links or Suggestions would be Appreciative at the moment!!!

谢谢!

推荐答案

类似的线程,的文件上传与Java与进度条

这篇关于进度条的文件上传?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆