1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<!-- 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>
|