marino      2004/01/26 16:04:30

  Added:       examples/struts/WEB-INF struts-app2-config.xml
  Log:
  the module config for example app 2
  
  Revision  Changes    Path
  1.1                  
jakarta-velocity-tools/examples/struts/WEB-INF/struts-app2-config.xml
  
  Index: struts-app2-config.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1" ?>
  
  <!DOCTYPE struts-config PUBLIC
            "-//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 for a single example module,
       with commented examples of some items.
  
       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>
  
  
    <!-- ========== Form Bean Definitions =================================== -->
    <form-beans>
  
      <!-- Struts Example Application 2 -->
  
       <form-bean
          name="demoForm"
          type= "examples.app2.DemoForm"/>
  
  
    </form-beans>
  
  
    <!-- ========== Action Mapping Definitions ============================== -->
    <action-mappings>
  
  
      <!-- Struts Example Application 2, Velocity Version -->
      <action path="/demo"
              type="examples.app2.DemoAction"
              name="demoForm"
              scope="request"
              validate="false">
          <forward name="home" path="/examples/struts_app2/tool-demo.vm" 
contextRelative="true"/>
          <forward name="exit" path="/examples/struts_app2/tool-demo.vm" 
contextRelative="true"/>
      </action>
  
      <action path="/demoSrc"
              type="org.apache.struts.actions.ForwardAction"
              parameter="/examples/struts_app2/tool-demo.txt"/>
  
    </action-mappings>
  
    <message-resources parameter="examples.app2.ApplicationResources" />
  
  </struts-config>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to