繁体   English   中英

文件上传进度条?

[英]Progress bar for File Uploading?

我正在使用servlet在我的Web应用程序中上传文件。 我想在上传时显示进度栏。 我已经看过一些Ajax + Progresslistener示例, 这里是一个。

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

My question is they are setting the Listener Attribute one time, at the beginning. How it will update the bytesRead frequently 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。 因此,如果我了解服务器端更新数据传输的过程,则可以使用它从服务器获取数据传输信息。

有人能解释一下服务器端的流程吗?

或任何链接或建议将不胜感激!

谢谢!

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM