我正在使用servlets在我的web应用程序中上载文件。我想在上传时显示进度条。我浏览了一些Ajax+Progresslistener示例,其中一个
here
.
在doPost()方法中,它们创建一个会话对象并设置一个新的属性侦听器。除此之外,我以前的doPost()方法的代码和教程代码是相同的。
My question is they are setting the Listener Attribute one time, at the beginning. How it will update the bytesRead frequently
(我是新来的,所以我的问题可能不合理)
在doGet()方法中,它们检索Listener属性并从中提取所需的信息。
This part also, i am not able to understand. They are not implementing ProgressListener class(Searches, led me to this Class).
我知道一些数据仓库。因此,如果我了解服务器端更新数据传输的过程,我可以使用它从服务器获取数据传输信息。
有人能给我解释一下服务器端的过程吗?
或任何链接或建议,将是感激的时刻!!!
谢谢!