<!-- Action Mappings for the STRUTS Example Application -->

<!--
  WARNING:  This file is deprecated, and remains only as an example
  of how the Struts configuration file would have been set up using
  the conventions of Struts 0.5.  All new development should be based
  on Struts 1.0 standards, and you should be configuring the file
  "struts-config.xml" instead.
-->

<action-mappings>

  <!-- Global Forward Declarations -->
  <forward name="logon"        path="/logon.jsp"/>

  <!-- Edit user registration -->
  <action    path="/editRegistration"
      actionClass="org.apache.struts.webapp.example.EditRegistrationAction"
    formAttribute="RegistrationForm"
        formClass="org.apache.struts.webapp.example.RegistrationForm">
    <forward name="success"    path="/Registration.jsp"/>
  </action>

  <!-- Edit mail subscription -->
  <action    path="/editSubscription"
      actionClass="org.apache.struts.webapp.example.EditSubscriptionAction"
    formAttribute="subscriptionForm"
        formClass="org.apache.struts.webapp.example.SubscriptionForm">
    <forward name="failure"    path="/mainMenu.jsp"/>
    <forward name="success"    path="/subscription.jsp"/>
  </action>

  <!-- Process a user logoff -->
  <action    path="/logoff"
      actionClass="org.apache.struts.webapp.example.LogoffAction">
    <forward name="success"    path="/index.jsp"/>
  </action>

  <!-- Process a user logon -->
  <action    path="/logon"
      actionClass="org.apache.struts.webapp.example.LogonAction"
    formAttribute="logonForm"
        formClass="org.apache.struts.webapp.example.LogonForm"
        inputForm="/logon.jsp">
    <forward name="success"    path="/mainMenu.jsp"/>
  </action>

  <!-- Save user registration -->
  <action    path="/saveRegistration"
      actionClass="org.apache.struts.webapp.example.SaveRegistrationAction"
    formAttribute="RegistrationForm"
        formClass="org.apache.struts.webapp.example.RegistrationForm"
        inputForm="/Registration.jsp">
    <forward name="success"    path="/mainMenu.jsp"/>
  </action>

  <!-- Save mail subscription -->
  <action     path="/saveSubscription"
       actionClass="org.apache.struts.webapp.example.SaveSubscriptionAction">
    <property name="formAttribute" value="subscriptionForm"/>
    <property name="formClass"
             value="org.apache.struts.webapp.example.SubscriptionForm"/>
    <property name="inputForm"     value="/subscription.jsp"/>
    <forward  name="success"        path="/editRegistration.do?action=Edit"/>
  </action>

</action-mappings>
