File Download start event in Struts

后端 未结 3 1978
悲&欢浪女
悲&欢浪女 2021-01-23 03:28

In my struts application, a user can download a file from the server.

I want to show a spinner during the time between the button click (to initiate the download) and fi

3条回答
  •  不知归路
    2021-01-23 03:59

    If you have an intermediate html view, then you can add some deferred javascript action to display a spinner, while view call localhost:8080/getFile.action in the background. Anyway, i don't know how to hide the spinner once download complete.

提交回复
热议问题