摘要: 在windows server 2008 R2中建立ftp站点,要遵循以下步骤:(1) 开启IIS中的ftp服务;(2) 在IIS中建立ftp站点。 具体过程如下:(1) 开启IIS中的ftp服务: 点击右边的添加角色,在打开的页面中添加角色,将和"IIS"相关的选项以及与"FTP"相关的选项... 阅读全文
posted @ 2014-11-24 14:48 夏之夜 阅读(13057) 评论(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 夏之夜 阅读(250) 评论(0) 推荐(0) 编辑
摘要: public int importExcel(String path,int type){ if(mark==false){ return 0; }else try{ POIFSFileSystem fs; ... 阅读全文
posted @ 2014-08-06 16:27 夏之夜 阅读(217) 评论(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 夏之夜 阅读(168) 评论(0) 推荐(0) 编辑
摘要: /*** * 获得根目录 * @returns */function getRootPath() { var strFullPath = window.document.location.href; var strPath = window.document.location.pathn... 阅读全文
posted @ 2014-08-04 19:13 夏之夜 阅读(914) 评论(0) 推荐(0) 编辑
摘要: 1. 上传文件(1) controller@RequestMapping(value={"/uploadFile"},method={RequestMethod.POST}) public String upload(@RequestParam(value = "file", require... 阅读全文
posted @ 2014-08-04 18:32 夏之夜 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/xd195666916/article/details/5419316 阅读全文
posted @ 2014-07-04 10:18 夏之夜 阅读(249) 评论(0) 推荐(0) 编辑
摘要: OLE和ActiveX控件的支持 OLE(Object Link Embeded)是指在程序之间链接和嵌入对象数据。通过OLE技术可以在一个应用程序中执行其他的应用程序。 而ActiveX控件是OLE的延伸,一般用于网络。 SWT中涉及OLE和ActiveX的类都在org.eclipse.swt.o... 阅读全文
posted @ 2014-05-18 18:31 夏之夜 阅读(8200) 评论(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 夏之夜 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 问题提出:现在我有三张表,学生Student,课程Course,成绩SC1. 学生表Student,主键是学号Sno2. 课程Course,主码是课程号Cno3. 成绩SC,主码是Sno和Cno,Sno外键约束是Student的Sno,Cno的外键约束是Cno现在我需要对Student或者Course进行修改或删除,希望在SC表中能保持修改或删除同步,这就需要到级联操作!方法一、SQL Server 2008 中手动设置“级联”这个方法建议在建表时不要加入任何设置外键的代码,如果主码是两者或以上的就不适合使用1. 打开“数据库关系图”,若未创建,则创建2. 选中SC表,右击选中“关系”,展开“ 阅读全文
posted @ 2014-03-28 14:29 夏之夜 阅读(1390) 评论(0) 推荐(0) 编辑