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


  • js JavaScript linkage of the package type, no matter can be several stages of data using non-Ajax way to add random linkage 2009-09-21

    From the snail to come <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <title> Try </title> </head> <script type="text/javascript"> var data = { '1' : 'a001', '2' : 'a002', '3'

  • Add a Javascript link in order to increase dynamic page rendering speed 2010-08-28

    javascript: function addScript (url) ( var script = document.createElement ('script'); script.type = 'text / javascript'; document.getElementsByTagName ('head') [0]. appendChild (script); )

  • Dynamically change the input type tag attributes (such as the password to text) 2010-12-25

    <HTML> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script> function removeSubmitFocus () { document.all ('pass'). outerHTML = "<input type = text name ='

  • 在 Linux 上安装Apache+ApacheJServ+JSP 2014-05-28

    一、版权声明 这份文件将遵循 GPL 方式发表。 二、软件取得 俗话说的好,工欲善其事,必先利其器;以下所列为本文中所提到软件取得的相关资源; 同时将以安装顺序来编排软件的次序。 I. Apache Web Server o http://www.apache.org/ o http://www.redhat.com/ o http://cle.linux.org.tw/ II. JDK o http://java.sun.com/ III. JSDK o http://java.sun.com

  • The use of link or @ import introduce the difference between css file 2009-03-27

    Taobao recent study at the website and found that the introduction of css page one of many ways to use the @ import way: <style type="text/css" media="screen"> @import url("http://taoke.alimama.com/css/newmyalimama/instance/overlay.css?t=11240510");

  • JSP file upload without refresh 2010-08-09

    This carried over for a long time before http://www.javaeye.com/topic/81120 online search to find a want, personally feel good to turn up. To give button with parameters, then add the js events, such as var f = document.getElementById("form1"); f.act

  • javascript validation file upload txt format 2009-05-21

    Busy day, from the Internet to find some relevant information, completed the upload txt file format validation issues. Has been harvested it, look at this record, for later use ah. <html> <head> <script language="javascript" type="text/java

  • [JavaScript] dynamically add multiple file upload and delete the file selection box 2010-09-28

    Multiple file upload, we must first solve a problem is to dynamically add or remove file selection box, not how difficult it had thought, but actually did not think IE does not support table.appendChild () of the js code, leading to the front JS, time tha

  • javascript实现依次输入input自动定焦 2014-11-28

    这篇文章主要介绍了javascript实现依次输入input自动定焦的方法及示例代码,非常实用,这里推荐给小伙伴们 <html> <head> <script type="text/javascript"> function moveNext(object,index){ if(object.value.length==4){ document.forms[0].elements[index+1].focus(); } } function showResul

  • javascript 设置某DIV区域内的checkbox复选框 2014-12-15

    主要用到dom的两个函数document.getElementById(id)和document.getElementsByTagName(name),希望对写复选框全选的虾们有些许帮助。 <!--HTML代码片段如下: --> <div id="div1"> <input type="checkbox" onclick="selectCheckBoxes('div1', this.checked)" />全选<br/> <input typ

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



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

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

processed in 0.388 (s). 14 q(s)