Ordinary hut

人间一福地,胜似天仙宫
posts - 61, comments - 50, trackbacks - 0, articles - 1

     摘要: fckeditor2.4的简单配置使用方法  阅读全文

posted @ 2009-04-08 08:51 landor 阅读(630) | 评论 (0)编辑 收藏

     摘要: 用netbean6 通过数据库生成 entity,jpa采用hibernate实现  阅读全文

posted @ 2009-04-08 08:49 landor 阅读(1118) | 评论 (0)编辑 收藏

     摘要: hibernate保存父子表的时候为何生成了多条的select  阅读全文

posted @ 2009-04-08 08:46 landor 阅读(487) | 评论 (0)编辑 收藏

     摘要: spring默认的是出现运行时异常(RuntimeException)及其子类的时候回滚,其他类不回滚  阅读全文

posted @ 2009-04-08 08:34 landor 阅读(631) | 评论 (0)编辑 收藏

     摘要: spring的jdbc支持中,2.0中RowMapperResultSetExtractor 替换1.0中 RowMapperResultReader
但是用法基本一样  阅读全文

posted @ 2009-04-08 08:32 landor 阅读(2226) | 评论 (0)编辑 收藏

意思是说在不同的package中含有相同的类,而这些类被context:component-scan管理进来了

当进行注入的时候spring无法识别要注入那个类了,

解决办法是不同的包下面的类也不要用相同的名字(如果这些类要用context:component-scan标签加载的话),或者等待spring的更新吧

posted @ 2009-04-07 21:30 landor 阅读(222) | 评论 (0)编辑 收藏

     摘要: getHibernateTemplate().getSessionFactory().getCurrentSession()的意思是得到当前线程绑定的session,而当前线程绑定的session是通过当前的事务产生的,如果你没有配置事务的话,当前线程threadlocal中就不存在 session,这样就出现no session错误  阅读全文

posted @ 2009-04-07 21:19 landor 阅读(7418) | 评论 (2)编辑 收藏

     摘要: 当一个.do出发的时候,struts先调用formBean里的reset方法,在这里可以对表单进行一些处理,然后再在action里面进行表单的其他赋值操作。可以在表单中用reset来给表单的一些元素赋值,但是要注意action是在这之后执行,所以要注意action的excute方法不要冲掉就行  阅读全文

posted @ 2009-04-07 21:14 landor 阅读(530) | 评论 (0)编辑 收藏

     摘要:
在jsp页面的form里面加上
注意:要先访问到这个jsp页面,来给token初始的值,这样当你提交的时候,才能匹配上  阅读全文

posted @ 2009-04-07 21:09 landor 阅读(2909) | 评论 (4)编辑 收藏

     摘要: 在bean标签中获取request  阅读全文

posted @ 2009-04-07 21:05 landor 阅读(373) | 评论 (0)编辑 收藏

     摘要: struts2 if标签、set、select、radio、generator、optiontransferselect、property标签  阅读全文

posted @ 2009-04-07 21:03 landor 阅读(2454) | 评论 (0)编辑 收藏

RequestAware接口是以Map类型向Action注入保存在HttpServletRequest中的Attribute集合。

Map中存放的数据是Attribute集合,而不是parameter集合

所以用get是获取不到页面的数据的,包括url后面的参数

即:get等同于getAttribute,而不是getParameter

posted @ 2009-04-07 20:57 landor 阅读(459) | 评论 (0)编辑 收藏

     摘要: 可以在资源文件中定义日期及其数字的格式化  阅读全文

posted @ 2009-04-07 20:54 landor 阅读(2096) | 评论 (0)编辑 收藏

     摘要: ActionContext是被存放在当前线程中的,获取ActionContext也是从ThreadLocal中获取的  阅读全文

posted @ 2009-04-07 20:47 landor 阅读(3652) | 评论 (0)编辑 收藏

     摘要: jdbc关于对clob字段的方法setCharacterStream的说明  阅读全文

posted @ 2009-04-07 17:15 landor 阅读(627) | 评论 (0)编辑 收藏

仅列出标题
共5页: 上一页 1 2 3 4 5 下一页