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.
I was wondering if there is any servlet example ?? or anyone has additional info for those of us that use JSP instead of 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.
<script type="text/javascript">
$(document).ready(function() {
$("#fileUpload1").fileUpload({
'upl开发者_运维百科oader': '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. In the link provided there are details on how exactly to us it in a servlet of yours.
精彩评论