dgraham     2002/10/27 13:30:04

  Modified:    doc/userGuide building_controller.xml
  Log:
  added basic controller docs and plugin example
  
  Revision  Changes    Path
  1.40      +19 -2     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.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- building_controller.xml   27 Oct 2002 02:29:02 -0000      1.39
  +++ building_controller.xml   27 Oct 2002 21:30:04 -0000      1.40
  @@ -678,7 +678,18 @@
   
         <section name="4.6.2 Controller Configuration" href="controller_config">
         <p>
  -        [:TODO:]
  +        The &lt;controller&gt; element allows you to configure the ActionServlet.  
Many of the controller
  +        parameters were previously defined by servlet init. parameters in your 
web.xml file but have been
  +        moved to this section of struts-config.xml.  For full details on available 
parameters see the
  +        struts-config_1_1.dtd.
  +      </p>
  +      <p>
  +             This example uses the default values for several controller 
parameters.  If you only want default
  +             behavior you can omit the controller section altogether.<br/>
  +             &lt;controller 
  +                     processorClass="org.apache.struts.action.RequestProcessor"
  +                     debug="0"
  +                     contentType="text/html"/&gt;
         </p>
         </section>
   
  @@ -738,6 +749,12 @@
       For PlugIns that require configuration themselves, the nested
       <code>&lt;set-property&gt;</code> element is available.
           </p>
  +        <p>
  +             This is an example using the Tiles plugin:<br/>
  +             &lt;plug-in className="org.apache.struts.tiles.TilesPlugin" &gt;
  +                             &lt;set-property property="definitions-config" 
value="/WEB-INF/tiles-defs.xml"/&gt;
  +                     &lt;/plug-in&gt;
  +        </p>
       </section>
   
         <section name="4.6.5 Other Configuration Objects" href="other_config">
  @@ -805,7 +822,7 @@
              data-source needs, the query you provide for the pingQuery
              attribute must return at least one row.</i><br/>
        <br/>
  -        <b>Example:</b><code>SELECT COUNT(*) FROM VALIDTABLE</code><br/>
  +        <b>Example:</b> <code>SELECT COUNT(*) FROM VALIDTABLE</code><br/>
        <br/>
        Just be sure you to replace "VALIDTABLE" with the name of a valid table in 
your database.
         </p>
  
  
  

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to