springside3 jquery.uploadify-v2.1.0 file upload

1, download www.uploadify.com into springside3 the \ mini-web \ webapp \ common
2, jsp
<% / / Upload start%>
<link href="${ctx}/common/uploadifyV2/example/css/default.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/common/uploadifyV2/example/css/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/common/uploadifyV2/example/scripts/jquery-1.3.2.min.js"> </ script>
<script type="text/javascript" src="${ctx}/common/uploadifyV2/example/scripts/swfobject.js"> </ script>
<script type="text/javascript" src="${ctx}/common/uploadifyV2/example/scripts/jquery.uploadify.v2.1.0.min.js"> </ script>
<script type="text/javascript">
$ (Document). Ready (function () (
$ ("# Uploadify"). Uploadify ((
'Uploader': '$ (ctx) / common/uploadifyV2/example/scripts/uploadify.swf',
'Script': '$ (ctx) / upload',
'CancelImg': '$ (ctx) / common/uploadifyV2/example/cancel.png',
'Folder': '$ (ctx) / uploads',
'QueueID': 'fileQueue',
'FileDataName': 'files',
'ScriptData': '("name", "namevalue")',
'Auto': true,
'Multi': true
));
));
</ Script>
<% / / Upload end%>

<% / / Upload start%>
<div> </ div>
<input type="file" name="uploadify" />
<p> <a href="javascript:jQuery('#uploadify').uploadifyClearQueue()"> Cancel All Uploads </ a> </ p>
<% / / Upload end%>

3, java (servlet in handy, into action in not).

Use apache's DiskFileItemFactory fac = new DiskFileItemFactory () handling of the documents submitted by the request stream.

分类:Java 时间:2010-04-06 人气:407
分享到:
blog comments powered by Disqus

相关文章

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.504 (s). 12 q(s)