springside3 jquery.uploadify-v2.1.0 file upload
Advertisements
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.
Related Posts of springside3 jquery.uploadify-v2.1.0 file upload
-
hibernate using c3p0 connection pooling
Private http://www.lifevv.com/tenyo/doc/20070605102040991.html c3p0 for open source's JDBC connection pool, with the release hibernate. This article describes how to use the hibernate configuration in c3p0. c3p0 connection pool configuration is v ...
-
Hibernate configuration parameters hibernate.hbm2ddl.auto
Hibernate in the configuration file: <properties> <property name="hibernate.hbm2ddl.auto" value="create" /> </ properties> Parameter Description: validate load hibernate, the authentication to create a database t ...
-
Build flex + spring + blazeds + hibernate application
Build flex + spring + blazeds + hibernate application First, set up the project blazeds 1, will blazeds.war extract to a directory, such as: myflex /; 2, set up java works were such as: MyFlex, in the orientation of selection create project from exis ...
-
Hibernate connection pool configuration
Hibernate connection pool configuration <! - Jdbc -> <property name="connection.driver_class"> oracle.jdbc.driver.OracleDriver </ property> <property name="connection.url"> jdbc: oracle: thin: @ 10.203.14.132:15
-
hibernate generic generic DAO
package org.lzpeng.dao; import java.io.Serializable; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.criterion.Criterion; import org.springside.modules.orm.hibernate.Page; /** * * @version 2009-1-10 *
-
Spring2.0 + hibernate3.1 + log4j + mysql demo
applicationContext.xml Non-attachment jar package, necessary friends can send an email to todd.liangt @ gmail.com
-
Struts2 + hibernate + spring problem user log in
dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q
-
Hibernate secondary cache
Hibernate cache: 2-bit cache, also known as process-level cache or SessionFactory level cache, secondary cache can be shared by all of the session Cache configuration and the use of: Will echcache.xml (the document code in hibernate package directory ...
-
Hibernate's lazy strategy
hibernate Lazy strategy can be used in: <class> tag, it can be true / false Tags can <PROPERTY> values true / false type of necessary tools to enhance <set> <list> can tag values true / false / extra <many-to-one> <on ...
-
spring struts2.0 hibernate bug killer 1
exception There is no Action mapped for namespace / and action name checkLogin. - [Unknown location] com.opensymphony.xwork2.DefaultActionProxy.prepare (DefaultActionProxy.java: 186) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy ...












