摘要: 我们一般会使用ALT+/作为提示快捷键,但是经常会由于快捷键冲突导致不能正常使用;经常冲突的快捷键为word completion和content assist;而content assist是我们所说的提示快捷键;因此我们要把word completion变成其他的即可; 阅读全文
posted @ 2012-05-14 23:15 hibernate3例子 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Hibernate包中自带C3P0的jar包;在hibernate.cfg.xml中加入:[html] view plaincopyprint?<propertyname="c3p0.min_size">5</property><!--连接池最小连接数--><propertyname="c3p0.max_size">20</property><!--最大连接数--><propertyname="c3p0.timeout">5000</proper 阅读全文
posted @ 2012-05-14 23:15 hibernate3例子 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 先来看具体struts中processActionForm方法的具体实现:[java] view plaincopyprint?/***<p>Retrieveandreturnthe<code>ActionForm</code>associatedwith*thismapping,creatingandretainingoneifnecessary.Ifthereisno*<code>ActionForm</code>associatedwiththismapping,return*<code>null</code& 阅读全文
posted @ 2012-05-14 23:14 hibernate3例子 阅读(358) 评论(0) 推荐(0) 编辑
摘要: ActionServlet中的一个方法processActionForm,当我们在截取字符串,再根据字符串取得ActionMapping之后,我们就要用利用ActionMapping来创建ActionForm,并且把ActionForm放到request或session中管理。获得ActionForm之后,我们就要将ActionForm中的数据放到Mapping中,以便实例化Action。在Struts中有一个方法是专门把ActionForm的数据放到Mapping的,这个方法就是processPopulate。今天我们就来详细来看看这个方法。 首先这个方法主要的功能是将表单数据放到Map中, 阅读全文
posted @ 2012-05-14 22:43 hibernate3例子 阅读(423) 评论(0) 推荐(0) 编辑