上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: 原文地址:http://www.cnblogs.com/kgdxpr/p/3209009.htmlvi /etc/yum.repos.d/MariaDB.repo加入下面内容[mariabd]name=MariaDBbaseurl=http://yum.mariadb.org/5.5.34/centos6-amd64/gpgkey=http://yum.mariadb.org/RPM-GPG-KEY-MariaDBgpgcheck=1保存退出yum install -yMariaDB-server MariaDB-client安装完后启动服务service mysql start设置root用 阅读全文
posted @ 2013-09-10 08:14 东师理想--周枫 阅读(162) 评论(0) 推荐(0) 编辑
摘要: sqlserver2008导入excel到数据库的时候报错:SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程 'sys.sp_OACreate' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ole Automation Procedures'。有关启用 'Ole Automation Procedures' 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器"。解决方 阅读全文
posted @ 2013-09-06 09:27 东师理想--周枫 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: 错误原因:上传文件过大,需要改nginx配置文件打开nginx主配置文件nginx.conf,找到http{}段,添加client_max_body_size 20m; 阅读全文
posted @ 2013-08-29 15:35 东师理想--周枫 阅读(188) 评论(0) 推荐(0) 编辑
摘要: /** * java发送带附件的邮件 * 周枫 * 2013.8.10 */package com.dsideal.Util;import javax.mail.*;import javax.mail.internet.*;import java.util.*;import javax.activa... 阅读全文
posted @ 2013-08-10 09:47 东师理想--周枫 阅读(421) 评论(0) 推荐(0) 编辑
摘要: //判断父页是否存在某个javascript函数 function fnExist(fnName) { //return fnName in this && eval(fnName) instanceof Function; return fnName in this && typeof (eval(fnName)) == "function"; } 返回结果为 true false//重载thickbox方法,实现刷新页面 function tb_remove() { if(fnExist("sele... 阅读全文
posted @ 2013-08-08 14:51 东师理想--周枫 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 1. 首先注意需要调用thickbox的js/css/thickbox.css">2. 关闭子页的时候,主要是调用了thickbox.js的tb_remove()函数注:不能修改thickbox.js中的tb_remove()函数,因为那个是个基类,如果发生单独的业务,需要在自己的jsp中重载该方法,也就是说,在父页的jsp中重写tb_remove()函数//重载thickbox方法,实现刷新页面 function tb_remove() { $("#TB_imageOff").unbind("click"); $("#TB_c 阅读全文
posted @ 2013-08-08 14:48 东师理想--周枫 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 结构如下A文件夹: A1文件.zip A2文件.zip A3文件.zipB文件夹: B1文件.zip B2文件.zip B3文件.zip......批处理文件:rezip.bat如下@echo offset rarpath=D:\Program Files\WinRAR\WinRAR.exefor /f %%i in ('dir *.zip /s /b') do (start "" "%rarpath%" e "%%i" "%%~dpi")pause 阅读全文
posted @ 2013-07-29 15:15 东师理想--周枫 阅读(1604) 评论(0) 推荐(0) 编辑
摘要: 1. 上传String path_tmp = ""; String real_path = ""; String fileName = ""; String file_url = ""; String uploadDir = File.separator + "upload" + File.separator + "contract" + File.separator; path_tmp = PathKit.getWebRootPath() + uploadDir; Uplo 阅读全文
posted @ 2013-07-27 15:25 东师理想--周枫 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 今天做form提交的时候,用到了disabled,form提交的时候怎么获取都是null,后来用hidden解决了这个问题,但是考虑到为什么,最后找到了原因,转载一篇文章,说明一下原文:http://www.nowamagic.net/html/html_ReadonlyAndDisabled.phpReadonly和Disabled是用在表单中的两个属性,它们都能够做到使用户不能够更改表单域中的内容。但是它们之间有着微小的差别,总结如下:Readonly只针对input(text / password)和textarea有效,而disabled对于所有的表单元素都有效,包括select, r 阅读全文
posted @ 2013-07-27 13:46 东师理想--周枫 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 今天使用jfinal做上传提交的时候,遇到一个问题:添加了上传功能,原来的form表单submit提交时所有值都为null了,研究了很长时间,终于发现在jfinal上传时候,jsp加enctype="multipart/form-data"这句话的时候在后台接收时,必须第一个解决上传文件,然后再接收其他参数,就正常了,真是...啊String path_tmp = ""; String real_path = ""; String fileName = ""; String pathAndName = " 阅读全文
posted @ 2013-07-26 15:46 东师理想--周枫 阅读(3914) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页