三个需要的程序包:
commons-dbcp-1.2.1.jar
http://apache.linuxforum.net/dist/jakarta/commons/dbcp/binaries/
struts-legacy.jar
http://apache.linuxforum.net/dist/jakarta/struts/struts-legacy/
commons-pool-1.2.jar
http://apache.linuxforum.net/dist/jakarta/commons/pool/binaries/
strut-config.xml
<data-sources>
<data-source key="mysqlWebDB" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="description" value="Mysql DataSource For zyweb" />
<set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" />
<set-property property="url" value="jdbc:mysql://localhost:3306/zyweb?useUnicode=true&characterEncoding=GBK" />
<set-property property="username" value="root" />
<set-property property="password" value="zyadmin" />
<set-property property="maxActive" value="10" />
<set-property property="maxWait" value="5000"/>
<set-property property="defaultAutoCommit" value="false" />
<set-property property="defaultReadOnly" value="false"/>
</data-source>
</data-sources>
posted on 2005-10-13 16:24
似水流年 阅读(650)
评论(0) 编辑 收藏 所属分类:
Struts