<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
          "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<!--
 $Header: /home/cvspublic/jakarta-jetspeed-2/applications/struts-demo/src/webapp/WEB-INF/struts-config-registration.xml,v 1.2 2005/01/20 01:42:21 ate Exp $
 $Revision: 1.2 $
 $Date: 2005/01/20 01:42:21 $

 Copyright 2000-2004 Apache Software Foundation

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<struts-config>
  <display-name><![CDATA[
     registration
  ]]>
  </display-name>
    <description><![CDATA[
     This is the Struts configuration file for the registration
     portion of the example application, using the wildcard syntax.
  ]]>
  </description>

  <!-- ========== Form Bean Definitions =================================== -->
  <form-beans>

    <!-- Registration form bean -->
    <form-bean      name="RegistrationForm"
                    type="org.apache.struts.webapp.example.RegistrationForm"/>

  </form-beans>

  <!-- ========== Global Forward Definitions ============================== -->
  <global-forwards>
    <forward   name="Registration"     path="/WEB-INF/view/Registration.jsp"/>
  </global-forwards>

  <!-- ========== Action Mapping Definitions ============================== -->
  <action-mappings>

    <!-- Matches all edit actions (in this case, only user regstration) -->
    <action    path="/Edit*"
               type="org.apache.struts.webapp.example.Edit{1}Action"
               name="{1}Form"
              scope="request"
           validate="false">
      <forward name="success"              path="/WEB-INF/view/{1}.jsp"/>
    </action>

    <!-- Matches all save actions (in this case, only user registration) -->
    <action    path="/Save*"
               type="org.apache.struts.webapp.example.Save{1}Action"
               name="{1}Form"
              scope="request"
              input="{1}"/>

  </action-mappings>

</struts-config>
