随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 815441
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

11 2007 档案

在Servlet中调用spring中定义的Bean
     摘要: WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()).getBean("bookService");  阅读全文

posted @ 2007-11-25 13:42 Ke 阅读(2996) | 评论 (2)  编辑

Struts 2与AJAX(第三部分)

posted @ 2007-11-24 00:05 Ke 阅读(424) | 评论 (0)  编辑

Struts2拦截器的使用

posted @ 2007-11-23 10:35 Ke 阅读(2380) | 评论 (0)  编辑

表单标志使用小技巧

posted @ 2007-11-23 10:33 Ke 阅读(320) | 评论 (0)  编辑

struts2表单(method=get)乱码问题
     摘要: 今天在做图书查询时,想让查询的条件通过GET的方式提交到相应的action里.

问题是中文数据提交到action里都成了乱码.

用post提交时,并不会出现上面提到的乱码问题.

请问该怎样解决提交用GET提交的乱码问题?
  阅读全文

posted @ 2007-11-22 14:14 Ke 阅读(4182) | 评论 (4)  编辑

用javascript取得当前页面的url路径

posted @ 2007-11-18 14:58 Ke 阅读(838) | 评论 (0)  编辑

struts2中使用displayTags的问题(ParametersInterceptor - [setParameters]: Unexpected Exception)
     摘要: ERROR - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'd-49653-p' on 'class dgut.ke.actions.SubjectAction: Error setting expression 'd-49653-p' with value '[Ljava.lang.String;@d73256'  阅读全文

posted @ 2007-11-17 15:21 Ke 阅读(10669) | 评论 (12)  编辑

Java中的内部类和匿名类
     摘要: 内部类:一个内部类的定义是定义在另一个内部的类。
原因是:
1.一个内部类的对象能够访问创建它的对象的实现,包括私有数据。
2.对于同一个包中的其他类来说,内部类能够隐藏起来。
3.匿名内部类可以很方便的定义回调。
4.使用内部类可以非常方便的编写事件驱动程序。  阅读全文

posted @ 2007-11-16 22:57 Ke 阅读(280) | 评论 (0)  编辑

申明式事务和OpenSessionInView
     摘要: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
  阅读全文

posted @ 2007-11-16 16:51 Ke 阅读(1931) | 评论 (0)  编辑

spring发送纯文本文件邮件

posted @ 2007-11-15 22:35 Ke 阅读(397) | 评论 (0)  编辑

DisplayTag应用指南

posted @ 2007-11-14 20:08 Ke 阅读(358) | 评论 (0)  编辑

关于displaytag1.1的两种分页

posted @ 2007-11-14 19:55 Ke 阅读(430) | 评论 (0)  编辑

表字段使用了关键字导致数据插入发生异常
     摘要: ERROR - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show, updateTime, id) values ('2c9ab2d51637c2ca0116380396f80009', '2c9ab2d516382' at line 1
ERROR - Could not synchronize database state with session  阅读全文

posted @ 2007-11-13 17:07 Ke 阅读(989) | 评论 (0)  编辑

Struts 2中的OGNL

posted @ 2007-11-12 14:08 Ke 阅读(528) | 评论 (1)  编辑

XML schema 中 elementFormDefault

posted @ 2007-11-11 11:30 Ke 阅读(539) | 评论 (0)  编辑

批量抓取

posted @ 2007-11-06 16:19 Ke 阅读(335) | 评论 (0)  编辑

外连接与预先抓取的区别(摘抄于hibernate开发及整合应用大全)

posted @ 2007-11-06 15:08 Ke 阅读(1189) | 评论 (0)  编辑

Hibernate配置属性 (hibernate.max_fetch_depth)

posted @ 2007-11-06 14:04 Ke 阅读(6710) | 评论 (0)  编辑

使用JSTL标签简化分页显示

posted @ 2007-11-05 17:14 Ke 阅读(63) | 评论 (0)  编辑

使用Hibernate.initialize(Object obj)方法初始化一个代理对象或者集合

posted @ 2007-11-03 22:17 Ke 阅读(5298) | 评论 (1)  编辑

Hibernate延迟加载
     摘要: 对one-to-one 关系进行延迟加载和其他关系相比稍微有些不同。many-to-one 的延迟加载是在配置文件的class 标签
上设置 lazy="true" ,one-to-many 和 many-to-many 的延迟加载是在 set 标签中设置lazy="true"。而one-to-one 不只要在 classs
标签设置 lazy="true",而且要在one-to-one 标签中设置constrained="true" 。
如果不设置constrained="true",则一对一查询使用默认的预先抓取策略(fetch="join")
  阅读全文

posted @ 2007-11-03 21:13 Ke 阅读(1925) | 评论 (0)  编辑