You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2002/06/15 17:23:38 UTC
cvs commit: jakarta-struts/doc/userGuide building_controller.xml
husted 2002/06/15 08:23:38
Modified: doc/userGuide building_controller.xml
Log:
(#8240) Data-Source configuration in examples is outdated - Patch provided by James Holmes.
Revision Changes Path
1.13 +24 -15 jakarta-struts/doc/userGuide/building_controller.xml
Index: building_controller.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_controller.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- building_controller.xml 9 Jun 2002 22:23:25 -0000 1.12
+++ building_controller.xml 15 Jun 2002 15:23:38 -0000 1.13
@@ -329,21 +329,30 @@
of struts-config.xml:
</p>
-<pre>
-<struts-config>
- <data-sources>
- <data-source
- autoCommit="false"
- description="Example Data Source Description"
- driverClass="org.postgresql.Driver"
- maxCount="4"
- minCount="2"
- password="mypassword"
- url="jdbc:postgresql://localhost/mydatabase"
- user="myusername"/>
- </data-sources>
-</struts-config>
-</pre>
+ <pre>
+ <struts-config>
+ <data-sources>
+ <data-source>
+ <set-property property="autoCommit"
+ value="false"/>
+ <set-property property="description"
+ value="Example Data Source Configuration"/>
+ <set-property property="driverClass"
+ value="org.postgresql.Driver"/>
+ <set-property property="maxCount"
+ value="4"/>
+ <set-property property="minCount"
+ value="2"/>
+ <set-property property="password"
+ value="mypassword"/>
+ <set-property property="url"
+ value="jdbc:postgresql://localhost/mydatabase"/>
+ <set-property property="user"
+ value="myusername"/>
+ </data-source>
+ </data-sources>
+ </struts-config>
+ </pre>
<p>
For information on how to retrieve the data source, see the
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>