Progress bar for File Uploading?

回眸只為那壹抹淺笑 提交于 2019-12-24 09:31:38

问题


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.

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)

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

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

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?

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

Thanks!


回答1:


Similar thread, File Upload with Java with Progress Bar.



来源:https://stackoverflow.com/questions/4192858/progress-bar-for-file-uploading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!