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>
  -&lt;struts-config>
  -  &lt;data-sources>
  -    &lt;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"/>
  -  &lt;/data-sources>
  -&lt;/struts-config>
  -</pre>
  +    <pre>
  +    &lt;struts-config>
  +      &lt;data-sources>
  +        &lt;data-source>
  +          &lt;set-property property="autoCommit"
  +                           value="false"/>
  +          &lt;set-property property="description"
  +                           value="Example Data Source Configuration"/>
  +          &lt;set-property property="driverClass"
  +                           value="org.postgresql.Driver"/>
  +          &lt;set-property property="maxCount"
  +                           value="4"/>
  +          &lt;set-property property="minCount"
  +                           value="2"/>
  +          &lt;set-property property="password"
  +                           value="mypassword"/>
  +          &lt;set-property property="url"
  +                           value="jdbc:postgresql://localhost/mydatabase"/>
  +          &lt;set-property property="user"
  +                           value="myusername"/>
  +        &lt;/data-source>
  +      &lt;/data-sources>
  +    &lt;/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>