简体   繁体   English

文件上传struts2中的进度条?

[英]File upload Progress bar in struts2?

我想实现文件上传进度监控栏对struts 2的文件上传功能......?

One way to use ajax-file-upload-struts2 which is Ajax based but not so active in development. 一种使用ajax-file-upload-struts2的方法 ,它基于Ajax但在开发中不那么活跃。

Other option is to use plain JQuery code with execute-and-wait-interceptor .The ExecuteAndWaitInterceptor is great for running long-lived actions in the background while showing the user a nice progress meter, So when the upload is in progress you can keep showing some kind of progress animation to user.You can also play around with S2-JQuery plugin also. 其他选项是使用带有执行和等待拦截器的普通JQuery代码.ExecuteAndWaitInterceptor非常适合在后台运行长期操作,同时向用户显示一个很好的进度表,所以在上传过程中你可以继续显示用户可以使用某种进度动画。您也可以使用S2-JQuery插件

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

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