摘要: JSONObject result = new JSONObject();报空指针异常,原因是包没导入完全。要使用JSONObject,需要以下6个jar包:1.commons-beanutils-1.7.0.jar2.commons-collections-3.2.1.jar3.commons-lang-2.3.jar4.commons-logging-1.0.4.jar5.ezmorph-1.0.3.jar6.json-lib-2.1.jar 阅读全文
posted @ 2013-11-11 03:49 李鬼989 阅读(1574) 评论(0) 推荐(0) 编辑
摘要: 修改Fckeditor 2.6 增加插入Mp3等多媒体文件功能2009-07-11 14:19:20|分类:asp.net相关|字号订阅转载自:http://letuful.blog.163.com/blog/static/5892028520096112192017/由于Fckeditor 2.6的代码有很多变动,原来的Fckeditor 2.5下的插入多媒体的代码需要调整,步骤如下:一、分别打开:editor/js/fckeditorcode_ie.js和/editor/js/fckeditorcode_gecko.js找到程序代码以下是代码片段:||/\.swf($|#|\?)/i.te 阅读全文
posted @ 2013-11-04 13:38 李鬼989 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 执行更新操作时,timestamp类型的字段自动被更新为了系统当前日期原因是设计表时勾选了根据当前时间戳更新。。。。。对表的设计掌握还是比较差。 阅读全文
posted @ 2013-10-30 21:25 李鬼989 阅读(305) 评论(0) 推荐(0) 编辑
摘要: //String path = System.getProperty("user.dir") + "\\src\\dbpool.properties"; // 路径 /** * 加载配置文件 */ // FileInputStream is = new FileInputStream(path); Properties props = new Properties(); props.load(getClass().getRe... 阅读全文
posted @ 2013-10-30 11:14 李鬼989 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Window --> Preferences --> Java --> Code Style --> Code Templates --> Comments --> types --> Edit 按需要设置,最后要勾选Automatically add comments for new methods and types. 阅读全文
posted @ 2013-10-26 18:32 李鬼989 阅读(176) 评论(2) 推荐(0) 编辑
摘要: 第一步:将项目中用到的 hibernate3.jar 解压缩,找到解压缩后的 org 文件下的 hibernate 文件下的 hibernate-mapping-3.0.dtd 文件。第二步:eclipse -> Window -> Preferences -> Web and XML -> XML Catalog,选择 XML Catalog Entries 的 Add... 按钮,在弹出的 Add XML Catalog Entry 对话框里,Location 里选择第二步里得到的 hibernate-mapping-3.0.dtd,Key Type 选择 URI, 阅读全文
posted @ 2013-10-11 21:07 李鬼989 阅读(242) 评论(1) 推荐(0) 编辑
摘要: 我打算学hibernate3,以后遇到了hibernate4的项目再看文档学习。 阅读全文
posted @ 2013-10-11 16:50 李鬼989 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 进入到eclipse安装目录下,有一个.eclipseproduct文件,用记事本打开,就可以知道版本了。 阅读全文
posted @ 2013-10-09 23:35 李鬼989 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 有时候用Eclipse或者MyEclipse的时候,发现不能自动编译,web工程下面缺少class文件!第一个可能是你的自动编译没打开:project->build automatically;第二个要注意你的工程项目上有没有打小红叉,项目报错时,eclipse是不自动编译的。你可以检查一下是否有些类出错,或是检查一下“构建路径”是否完整,特别是从换机子调试程序时,有些导入jar包的路径不对。通常我们遇到的是第二个,就是有的包在别人机器上是有的,但是到你的机器上相同路径是没有的,删去和那个包有关系的,或者添加新的包路径eclipse出现不编译工程的现象。怎么刷新classes目录下也是空 阅读全文
posted @ 2013-10-09 19:39 李鬼989 阅读(4373) 评论(0) 推荐(0) 编辑
摘要: 严重: Error loading WebappClassLoader context: /peopleInfomationManager delegate: false repositories: /WEB-INF/classes/----------> Parent Classloader:org.apache.catalina.loader.StandardClassLoader@16c9867 org.apache.struts.action.ActionServletjava.lang.ClassNotFoundException: org.apache.struts.a... 阅读全文
posted @ 2013-10-09 13:19 李鬼989 阅读(1688) 评论(0) 推荐(0) 编辑