1,Added ConstantIniter && FreemarkerIniter To JChord;
2,RAD :
JChord : Explaining;
3,Buyed 1.5w Stocks From Pubinfo;
4,Refactoring
Eclipse Plugins;
5, Added JdbcDAO && Paged By SQL To JChord;
6,
设置Tomcat5的server.xml中<connector URIEncoding=GBK/>解决URL路径的乱码问题;
7,
Review Webwork Doc;
8, The Party Meeting In Pubinfo;企业转型;
9, Kristy's
Training: 网络基础知识;
10, Added RunData=>BaseAction &&
ParamInterceptor To JChord;
11, I have got the http://www.chineseren.cn
12,(1)webwork中为Action的变量设置初值:
Action代码如下:
public
class ListCity implements Action {
private Page page = new Page();
private int number;
}
Action配置如下:
<action name="listCity"
class="com.ebt.action.city.ListCity" >
<param
name="number">10</param>
<param
name="page.everyPage">10</param>
<result
name="success">/city/city_list.jsp</result>
<result name="exception">/no_object.jsp</result>
</action>
(2)自己系统的配置文件如果是properties文件,可以采用${cms.db.url}的形式与Spring的配置文件结合,参考Spring参考手册中PropertyPlaceholderConfigurer的用法。
如果是其它格式的配置文件,可以参考PropertyPlaceholderConfigurer的实现,加入自己的配置处理过程。
(3)C3P0
dataSource可提供给JdbcTemplate使用直接执行SQL语句;
<bean id="dataSource"
class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
<property name="driverClass">
<value>${driver}</value>
</property>
<property name="jdbcUrl">
<value>${url}</value>
</property>
<property name="user">
<value>${username}</value>
</property>
<property name="password">
<value>${password}</value>
</property>
<!-- C3P0属性配置 -->
<property name="initialPoolSize">
<value>5</value>
</property>
<property
name="minPoolSize">
<value>3</value>
</property>
<property name="maxPoolSize">
<value>15</value>
</property>
<property
name="checkoutTimeout">
<value>5000</value>
</property>
<property name="maxIdleTime">
<value>1800</value>
</property>
<property name="idleConnectionTestPeriod">
<value>3000</value>
</property>
<property name="acquireIncrement">
<value>2</value>
</property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property
name="dataSource"><ref
local="dataSource"/></property>
<property
name="hibernateProperties">
<props>
<!-- Miscellaneous
Settings -->
<prop
key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop
key="hibernate.order_updates">true</prop>
<prop
key="hibernate.max_fetch_depth">1</prop>
<prop
key="hibernate.default_batch_fetch_size">8</prop>
<prop
key="hibernate.show_sql">true</prop>
<prop
key="hibernate.use_outer_join">true</prop>
<prop
key="hibernate.jdbc.fetch_size">50</prop>
<prop
key="hibernate.jdbc.batch_size">30</prop>
<prop
key="hibernate.jdbc.use_streams_for_binary">true</prop>
<!--
hibernate.statement_cache.size=maximum number of cached PreparedStatements (
must be 0 for Interbase ) -->
<!--<prop
key="hibernate.statement_cache.size">0</prop>-->
<!--
事务管理类型,这里默认使用JDBC Transaction -->
<!--<prop
key="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</prop>-->
<!--
缓存设置默认是EhCache -->
<prop
key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
<!--
enable the query cache -->
<prop
key="hibernate.cache.use_query_cache">true</prop>
<!-- store
the second-level cache entries in a more human-friendly format
-->
<prop
key="hibernate.cache.use_structured_entries">true</prop>
</props>
</property>
(4)用#default#savehistory防止后退清空text文本框;
保持刷新文本框中的值
<HTML>
<HEAD>
<META NAME="save"
CONTENT="history">
<STYLE>
.saveHistory
{behavior:url(#default#savehistory);}
</STYLE>
</HEAD>
<BODY>
<INPUT
class=saveHistory type=text
id=oPersistInput>
</BODY>
</HTML>