文件上传的进度条?

时间:2010-11-16 09:52:31

标签: java ajax file-upload progress

我正在使用servlet在我的Web应用程序中上传文件。我想在上传时显示进度条。我已经浏览了一些Ajax + Progresslistener示例,一个here

在doPost()方法中,他们创建一个会话对象并设置一个新属性Listener。除此之外,我之前的doPost()方法的代码和教程代码是相同的。

My question is they are setting the Listener Attribute one time, at the beginning. How it will update the bytesRead frequently(我是新手,所以,我的问题可能不合理)

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

This part also, i am not able to understand. They are not implementing ProgressListener class(Searches, led me to this Class).

我知道一些DWR。因此,我可以使用它从服务器获取数据传输信息,如果我理解服务器端进程更新数据传输。

任何人都可以解释一下服务器端进程吗?

或任何链接或建议目前都是欣赏!!!

谢谢!

1 个答案:

答案 0 :(得分:1)

相关问题