You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by sr...@apache.org on 2003/10/14 19:02:53 UTC

cvs commit: jakarta-struts/web/blank/WEB-INF struts-config.xml

sraeburn    2003/10/14 10:02:53

  Modified:    web/blank/WEB-INF struts-config.xml
  Log:
  Fixed missing end tag in form-bean example config
  PR# 23816 
  
  Also reformatted to remove unneccessary blank lines.
  
  Revision  Changes    Path
  1.10      +1 -142    jakarta-struts/web/blank/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/blank/WEB-INF/struts-config.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- struts-config.xml	29 Dec 2002 21:41:57 -0000	1.9
  +++ struts-config.xml	14 Oct 2003 17:02:53 -0000	1.10
  @@ -4,288 +4,147 @@
             "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
             "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
   
  -
  -
   <!--
  -
        This is a blank Struts configuration file with an example
  -
        welcome action/page and other commented sample elements.
   
  -
  -
        Tiles and the Struts Validator are configured using the factory defaults
  -
        and are ready-to-use.
   
  -
  -
        NOTE: If you have a generator tool to create the corresponding Java classes
  -
        for you, you could include the details in the "form-bean" declarations.
  -
        Otherwise, you would only define the "form-bean" element itself, with the
  -
        corresponding "name" and "type" attributes, as shown here.
  -
   -->
   
   
  -
  -
  -
   <struts-config>
   
  -
  -
   <!-- ==================================== Data Source Configuration -->
  -
   <!--
  -
    <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>
  -
   -->
   
  -
  -
   <!-- ======================================== Form Bean Definitions -->
   
  -
  -
       <form-beans>
   
  -
  -
       <!-- sample form bean descriptor for an ActionForm
  -
           <form-bean
  -
               name="inputForm"
  -
               type="app.InputForm"/>
  -
       end sample -->
   
  -
  -
       <!-- sample form bean descriptor for a DynaActionForm
  -
           <form-bean
  -
               name="logonForm"
  -
               type="org.apache.struts.action.DynaActionForm">
  -
               <form-property
  -
                   name="username"
  -
                   type="java.lang.String"/>
  -
               <form-property
  -
                   name="password"
  -
                   type="java.lang.String"/>
  -
  +       </form-bean>
       end sample -->
   
   
  -
       </form-beans>
   
   
  -
  -
  -
   <!-- ================================= Global Exception Definitions -->
   
  -
  -
       <global-exceptions>
  -
           <!-- sample exception handler
  -
           <exception
  -
               key="expired.password"
  -
               type="app.ExpiredPasswordException"
  -
               path="/changePassword.jsp"/>
  -
           end sample -->
  -
       </global-exceptions>
   
   
  -
  -
  -
   <!-- =================================== Global Forward Definitions -->
   
  -
  -
       <global-forwards>
  -
           <!-- Default forward to "Welcome" action -->
  -
           <!-- Demonstrates using index.jsp to forward -->
  -
           <forward
  -
               name="welcome"
  -
               path="/Welcome.do"/>
  -
       </global-forwards>
   
   
  -
  -
  -
   <!-- =================================== Action Mapping Definitions -->
   
  -
  -
       <action-mappings>
   
  -
  -
               <!-- Default "Welcome" action -->
  -
               <!-- Forwards to Welcome.jsp -->
  -
           <action
  -
               path="/Welcome"
  -
               type="org.apache.struts.actions.ForwardAction"
  -
               parameter="/pages/Welcome.jsp"/>
   
  -
  -
       <!-- sample input and input submit actions
   
  -
  -
           <action
  -
               path="/Input"
  -
               type="org.apache.struts.actions.ForwardAction"
  -
               parameter="/pages/Input.jsp"/>
   
  -
  -
           <action
  -
               path="/InputSubmit"
  -
               type="app.InputAction"
  -
               name="inputForm"
  -
               scope="request"
  -
               validate="true"
  -
               input="/pages/Input.jsp"/>
   
  -
  -
       end samples -->
   
  -
  -
  -
  -
       </action-mappings>
   
   
  -
  -
  -
   <!-- ===================================== Controller Configuration -->
   
  -
  -
       <controller
  -
          processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
   
   
  -
  -
  -
   <!-- ================================ Message Resources Definitions -->
   
  -
  -
       <message-resources parameter="resources.application"/>
   
   
  -
  -
  -
   <!-- ======================================= Plug Ins Configuration -->
  -
   
     <!-- ========== Tiles plugin ===================  -->
     <!--												-->
  
  
  

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