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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
|
<?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/cvs/jakarta-struts/web/example/WEB-INF/struts-config.xml,v 1.43 2004/09/02 03:43:15 niallp Exp $
$Revision: 1.43 $
$Date: 2006-02-14 19:26:15 +0000 (Tue, 14 Feb 2006) $
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[
account maintenance
]]>
</display-name>
<description><![CDATA[
Allows the updating of users accounts and subscriptions.
]]>
</description>
<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
<!-- Logon form bean -->
<form-bean name="LogonForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="username" type="java.lang.String"/>
<form-property name="password" type="java.lang.String"/>
</form-bean>
<!-- Subscription form bean -->
<form-bean name="SubscriptionForm"
type="org.apache.struts.webapp.example.SubscriptionForm"/>
</form-beans>
<!-- ========== Global Forward Definitions ============================== -->
<global-forwards>
<forward name="welcome" path="/Welcome.do"/>
<forward name="logoff" path="/Logoff.do"/>
<forward name="logon" path="/Logon.do"/>
<forward name="success" path="/MainMenu.do"/>
</global-forwards>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- Display welcome page -->
<action path="/Welcome"
type="org.apache.struts.webapp.example.WelcomeAction">
<forward name="failure" path="/Error.jsp" />
<forward name="success" path="/welcome.jsp" />
</action>
<!-- Change locale action -->
<action
path="/Locale"
type="org.apache.struts.webapp.example.LocaleAction"
parameter="welcome" />
<!-- Display registration page -->
<action path="/Registration"
forward="/registration.jsp"/>
<!-- Display logon page -->
<action path="/MainMenu"
forward="/mainMenu.jsp"/>
<!-- Display logon page -->
<action path="/Logon"
forward="/logon.jsp"/>
<!-- Process a user logon -->
<action path="/SubmitLogon"
type="org.apache.struts.webapp.example.LogonAction"
name="LogonForm"
scope="request"
input="logon">
<set-property property="cancellable" value="true"/>
<exception
key="expired.password"
type="org.apache.struts.webapp.example.ExpiredPasswordException"
path="/ExpiredPassword.do"/>
</action>
<!-- Process a user logoff -->
<action path="/Logoff"
type="org.apache.struts.webapp.example.LogoffAction">
<forward name="success" path="/Welcome.do"/>
</action>
<!-- Edit mail subscription -->
<action path="/EditSubscription"
type="org.apache.struts.webapp.example.EditSubscriptionAction"
name="SubscriptionForm"
scope="request"
validate="false">
<forward name="failure" path="/MainMenu.do"/>
<forward name="success" path="/subscription.jsp"/>
</action>
<!-- Save mail subscription -->
<action path="/SaveSubscription"
type="org.apache.struts.webapp.example.SaveSubscriptionAction"
name="SubscriptionForm"
scope="request"
input="subscription">
<set-property property="cancellable" value="true"/>
<forward name="subscription" path="/subscription.jsp"/>
<forward name="success" path="/EditRegistration.do?action=Edit"/>
</action>
<!-- Display the change password page when a password expires -->
<action path="/ExpiredPassword"
forward="/changePassword.jsp">
</action>
<!-- Display the "walking tour" documentation -->
<action path="/Tour"
forward="/tour.html">
</action>
</action-mappings>
<!-- ========== Controller Configuration ================================ -->
<controller pagePattern="$M$P" inputForward="true" />
<!-- pagePattern: use this pattern when creating URIs to resources.
$M=module, $P=path -->
<!-- inputForward: The "input" parameter on "action" elements is the name of a
local or global "forward" rather than a module-relative path -->
<!-- ========== Message Resources Definitions =========================== -->
<message-resources
parameter="org.apache.struts.webapp.example.ApplicationResources"/>
<message-resources
parameter="org.apache.struts.webapp.example.AlternateApplicationResources"
key="alternate"/>
<!-- ========== Plug Ins Configuration ================================== -->
<plug-in className="org.apache.struts.plugins.ModuleConfigVerifier"/>
<plug-in className="org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn">
<set-property property="pathname" value="/WEB-INF/database.xml"/>
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
<plug-in className="org.apache.struts.plugins.DigestingPlugIn">
<set-property property="key" value="serverTypes"/>
<set-property property="configPath" value="/WEB-INF/server-types.xml"/>
<set-property property="digesterPath" value="/WEB-INF/lvb-digester-rules.xml"/>
</plug-in>
</struts-config>
|