摘要: 实现FTP文件上传与下载可以通过以下两种种方式实现(不知道还有没有其他方式,),分别为:1、通过JDK自带的API实现;2、通过Apache提供的API是实现。第一种方法:通过JDK自带的API实现代码如下:package com.cloudpower.util;import java.io.Fil... 阅读全文
posted @ 2014-11-24 15:14 夏之夜 阅读(597) 评论(0) 推荐(0)
摘要: 在windows server 2008 R2中建立ftp站点,要遵循以下步骤:(1) 开启IIS中的ftp服务;(2) 在IIS中建立ftp站点。 具体过程如下:(1) 开启IIS中的ftp服务: 点击右边的添加角色,在打开的页面中添加角色,将和"IIS"相关的选项以及与"FTP"相关的选项... 阅读全文
posted @ 2014-11-24 14:48 夏之夜 阅读(13106) 评论(0) 推荐(0)
摘要: package cn.cctv.net; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; impo... 阅读全文
posted @ 2014-08-11 10:59 夏之夜 阅读(282) 评论(0) 推荐(0)
摘要: public int importExcel(String path,int type){ if(mark==false){ return 0; }else try{ POIFSFileSystem fs; ... 阅读全文
posted @ 2014-08-06 16:27 夏之夜 阅读(231) 评论(0) 推荐(0)
摘要: (1) action代码package comSys.struts.articleManager;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import org.apache.... 阅读全文
posted @ 2014-08-06 16:24 夏之夜 阅读(189) 评论(0) 推荐(0)
摘要: /*** * 获得根目录 * @returns */function getRootPath() { var strFullPath = window.document.location.href; var strPath = window.document.location.pathn... 阅读全文
posted @ 2014-08-04 19:13 夏之夜 阅读(925) 评论(0) 推荐(0)
摘要: 1. 上传文件(1) controller@RequestMapping(value={"/uploadFile"},method={RequestMethod.POST}) public String upload(@RequestParam(value = "file", require... 阅读全文
posted @ 2014-08-04 18:32 夏之夜 阅读(342) 评论(0) 推荐(0)
摘要: 原文地址:http://blog.csdn.net/xd195666916/article/details/5419316 阅读全文
posted @ 2014-07-04 10:18 夏之夜 阅读(259) 评论(0) 推荐(0)
摘要: OLE和ActiveX控件的支持 OLE(Object Link Embeded)是指在程序之间链接和嵌入对象数据。通过OLE技术可以在一个应用程序中执行其他的应用程序。 而ActiveX控件是OLE的延伸,一般用于网络。 SWT中涉及OLE和ActiveX的类都在org.eclipse.swt.o... 阅读全文
posted @ 2014-05-18 18:31 夏之夜 阅读(8402) 评论(0) 推荐(0)
摘要: private void createTableText(Table table) { TableEditor editor = new TableEditor(table); for (int i = 0; i < table.getItemCount(); i++) { editor = new TableEditor(table); Text text = new Text(table, SWT.BORDER); coun... 阅读全文
posted @ 2014-04-08 19:46 夏之夜 阅读(309) 评论(0) 推荐(0)