上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 47 下一页
摘要: 症状:如题分析/解决方案:你的toString抛出了异常,去查看toString的代码是不是有问题,比如说空指针什么的 阅读全文
posted @ 2014-01-19 17:33 rldts 阅读(4827) 评论(0) 推荐(0)
摘要: 症状: 如题分析: 修改、更换或者删除了WEB-INF/lib中的jar包解决方案: 右击项目>build path>Libraries 直接remove Web App Libraries即可,下次启动会载入最新的 阅读全文
posted @ 2014-01-19 16:36 rldts 阅读(608) 评论(0) 推荐(0)
摘要: 原文: http://www.cnblogs.com/Sun_Blue_Sky/articles/2139996.html 阅读全文
posted @ 2014-01-19 09:34 rldts 阅读(202) 评论(0) 推荐(0)
摘要: 症状: 如题 原因: 使用的版本是jstl 1.0.2解决方案: 换成jstl 1.2即可(web项目的build-path,以及WEB-INF/lib) 阅读全文
posted @ 2014-01-18 17:11 rldts 阅读(231) 评论(0) 推荐(0)
摘要: 参考:http://hi.baidu.com/desyle/item/4fe650265792d7182a0f1c33症状: 如题所述,代码如下 SELECT xxx,uuu,zzz,ttt,yyy FROM aaa;原因: web项目的build-path或者WEB-INF/lib中jstl1.0和jstl1.2的jar包共存方法: 删除build-path已经WEB-INF/lib中多余的jstl的jar包,只保留一个即可 阅读全文
posted @ 2014-01-18 16:48 rldts 阅读(312) 评论(0) 推荐(0)
摘要: 适合任何文件尤其是图片,注意那个binary参数fin和fout都必须有,否则要出问题 std::ifstream fin; fin.open("f:\\ss.jpg", std::ios_base::binary); std::ofstream fout; fout.open("d:\\ss.jpg", std::ios_base::binary); char byte; while (fin.get(byte)) { fout << byte; } fin.close(); fout.close(); 阅读全文
posted @ 2014-01-17 21:22 rldts 阅读(229) 评论(0) 推荐(0)
摘要: Project -> Properties -> Configuration Properties -> Debugging在Command Arguments里填上即可 阅读全文
posted @ 2014-01-17 20:50 rldts 阅读(1918) 评论(0) 推荐(0)
摘要: Ps: 难免碰到C家族的代码 ,各种const直接搞晕,搜集各种资料备用。。。。------------------------------------------------------------------------------------------------No.1.C中const的用法总结起来主要分为以下两种:1, 在定义变量时使用(由于const常量在定义后不能被修改,所以在定义时一定要进行初始化操作):a)最简单的用法,说明变量为一个常变量(在以下例子里,int和const的先后顺序可以改变的,这无所谓):const int a=100;int const b=100;b) 阅读全文
posted @ 2014-01-16 13:39 rldts 阅读(272) 评论(0) 推荐(0)
摘要: 刚才琢磨这个问题主要是在想,如果constructor抛出了exception,那么返回的object是什么一个情况呢?如果我这个object中有一些关键的资源没有初始化,比如说Database connection在创建的时候有可能抛出SQLException,会不会返回一个HALF-MADE的object呢?为了验证,写了如下代码,结论:如果constructor中抛出了exception,constructor不会返回任何object,甚至null也不会返回。(因为程序流程在执行到return之前就跳转到exception处理去了啊亲,当然不会return任何东西!)class Box 阅读全文
posted @ 2014-01-14 22:10 rldts 阅读(764) 评论(0) 推荐(0)
摘要: public static boolean parseHTML(Scanner sc, List errorInfo) { String[] tags = new String[DEFAULT_CAPACITY]; int count = 0; // tag counter String token; // token returned by the scanner while (sc.hasNextLine()) { while ((token = sc.findInLine("]*>"))!=null) { //... 阅读全文
posted @ 2014-01-14 16:01 rldts 阅读(2337) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 47 下一页