如何使用JSP和servlet创建文件上传器? [英] How can I create a file uploader using JSP and servlet?

查看:146
本文介绍了如何使用JSP和servlet创建文件上传器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我想用JSP / Servlet创建一个文件上传器。在JSP页面中将会有一个链接。点击链接相应的动作类被调用。所以当上传开始时,我必须得到我的JSP页面上的信息状态。但是,如果链接再次点击,我必须显示,一个消息,如一个导入已经运行。



是这样的东西已经可用?

解决方案

其中一个jquery文件上传

http://www.phpletter.com/Demo/AjaxFileUpload-Demo/



如果你google的话,你可以找到更多的例子


Recently I thought of creating a file uploader using JSP/Servlet. In the JSP page there will be a link. On clicking the link corresponding action class is called. So when the upload starts I must get the info status on my JSP page. But if the link is clicked again I must show that some message like one import is already running.

Is something like this already available? I don't want to reinvent the wheel.

解决方案

One of the Jquery File Upload

http://www.phpletter.com/Demo/AjaxFileUpload-Demo/

You may find many more examples if you google it

这篇关于如何使用JSP和servlet创建文件上传器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆