Ordinary hut

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

04 2009 档案

     摘要: The requested list key 'roles' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]  阅读全文

posted @ 2009-04-11 15:27 landor 阅读(22608) | 评论 (18)  编辑 |

     摘要: 运行了一下struts2.1.6自带的例子showcase,把这个war包拷贝到tomcat的webapp下,运行,结果报错java.lang.NullPointerException  阅读全文

posted @ 2009-04-09 09:10 landor 阅读(1532) | 评论 (0)  编辑 |

     摘要: ibatis与weblogic集成中JTA方式的配置  阅读全文

posted @ 2009-04-08 09:10 landor 阅读(2100) | 评论 (0)  编辑 |

     摘要: 两种方法生成jFreeChart图标  阅读全文

posted @ 2009-04-08 08:55 landor 阅读(5018) | 评论 (4)  编辑 |

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

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

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

posted @ 2009-04-08 08:49 landor 阅读(1119) | 评论 (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 阅读(2227) | 评论 (0)  编辑 |

     摘要: 关于spring2.5出现doesn't recognize same beans when included multiple times on classpath的问题  阅读全文

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 阅读(537) | 评论 (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 阅读(2455) | 评论 (0)  编辑 |

     摘要: RequestAware接口中get方法是获取不到页面数据的  阅读全文

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 阅读(631) | 评论 (0)  编辑 |

     摘要: Collections.sort方法对list排序有两种方法
第一种是list中的对象实现Comparable接口
第二种方法是根据Collections.sort重载方法来实现  阅读全文

posted @ 2009-04-07 16:40 landor 阅读(164542) | 评论 (7)  编辑 |