零全零美(www.zzgwt.com)
生活中的很多事情,并不像If...Else那么简单!
posts - 96,comments - 52,trackbacks - 0
     摘要: document.getElementById 有时会抓name放过了id ,据说是IE的一个BUG;  阅读全文
posted @ 2008-04-19 21:10 零全零美 阅读(1388) | 评论 (1)编辑 收藏
     摘要: $()这个创意确实是从Protoype偷来的,但是Protoype是不是原创,那我就无从得知了。  阅读全文
posted @ 2008-04-19 20:40 零全零美 阅读(236) | 评论 (0)编辑 收藏
     摘要: 按照文档的说明,自己写了一个简单的demo(简直就是照抄,嘿嘿),但是,就这样也会出毛病,我真晕啊!  阅读全文
posted @ 2008-04-19 20:06 零全零美 阅读(423) | 评论 (0)编辑 收藏
     摘要: 当使用 fail-fast iterator 对 Collection 或 Map 进行迭代操作过程中尝试直接修改 Collection / Map 的内容时,即使是在单线程下运行, java.util.ConcurrentModificationException 异常也将被抛出。  阅读全文
posted @ 2008-04-18 00:33 零全零美 阅读(183) | 评论 (0)编辑 收藏
     摘要: 无其他条件

1select * from n_fwy_a a left join n_fwy_b b on a.id=b.id order by a.id;
2select * from n_fwy_a a ,n_fwy_b b where a.id=b.id(+) order by a.id;
这两重写法的查询的结果一致

在主表加附加条件


1select * from n_fwy_a a ,n_fwy_b b where a.id=b.id(+) and a.id >5 order by a.id;
2select * from n_fwy_a a left join n_fwy_b b on a.id=b.id where a.id>5 order by a.id;
3select * from n_fwy_a a left join n_fwy_b b on a.id=b.id and a.id>5 order by a.id;--no


这三种写法  阅读全文
posted @ 2008-04-17 23:59 零全零美 阅读(2689) | 评论 (0)编辑 收藏
      Insert   into   复制表名称   select   语句   (复制表已经存在)  
      create   table   复制表名称   as   select   语句   (复制表不存在)
posted @ 2008-04-17 23:54 零全零美 阅读(716) | 评论 (0)编辑 收藏
在JSP中使用Spring其实很容易,主要用到Spring的WebApplicationContextUtils.getWebApplicationContext函数。

要再JSP里面得到ApplicationContext需要这么做.
首先
import="org.springframework.web.context.support.*,org.springframework.context.*"

然后可以通过如何做法:

ApplicationContext  ctx  =  WebApplicationContextUtils.getWebApplicationContext(getServletContext());

这样就得到了ApplicationContext,就可以操作Spring了。

JSP本来就可以认为是一个Servlet,所以使用getServletContext()就是理所应当了。
posted @ 2008-04-17 23:45 零全零美 阅读(115) | 评论 (0)编辑 收藏
仅列出标题
共10页: First 上一页 2 3 4 5 6 7 8 9 10