[英]Uploadify and JSP/Java servlet
I just started working with Uploadify with our Java/JSP Applications and for that I use a servlet instead of the upload.php to do the upload to the server. 我刚刚开始在我们的Java / JSP应用程序中使用Uploadify,为此,我使用servlet而不是upload.php将文件上传到服务器。
I was wondering if there is any servlet example ?? 我想知道是否有任何servlet示例? or anyone has additional info for those of us that use JSP instead of PHP?
还是有人对使用JSP而不是PHP的我们有更多信息?
I follow the example but it doesn't seem to do anything. 我按照示例进行操作,但似乎没有任何作用。 i changed the script attribute to a JSP file and it doesn't get called.
我将脚本属性更改为JSP文件,但未调用它。
<script type="text/javascript">
$(document).ready(function() {
$("#fileUpload1").fileUpload({
'uploader': 'mypath/uploader.swf',
'cancelImg': 'mypath/cancel.png',
'script': 'mypath/upload.php', // a jsp file???
'folder': 'files',
'multi' : false
});
});
</script>
You'd better be using commons file-upload . 您最好使用commons file-upload 。 In the link provided there are details on how exactly to us it in a servlet of yours.
在提供的链接中,详细说明了如何在您自己的servlet中对我们进行精确处理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.