2
* Copyright 1999-2001,2004 The Apache Software Foundation.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
18
package org.apache.struts.webapp.example;
21
import org.apache.struts.action.ActionMapping;
25
* Implementation of <strong>ActionMapping</strong> for the Struts
26
* example application. It defines the following custom properties:
28
* <li><b>failure</b> - The context-relative URI to which this request
29
* should be forwarded if a validation error occurs on the input
30
* information (typically goes back to the input form).
31
* <li><b>success</b> - The context-relative URI to which this request
32
* should be forwarded if the requested action is successfully
36
* @author Craig R. McClanahan
37
* @version $Revision: 1.2 $ $Date: 2004/03/08 02:49:52 $
40
public final class ApplicationMapping extends ActionMapping {
43
// --------------------------------------------------- Instance Variables
47
* The failure URI for this mapping.
49
private String failure = null;
53
* The success URI for this mapping.
55
private String success = null;
58
// ----------------------------------------------------------- Properties
62
* Return the failure URI for this mapping.
64
public String getFailure() {
66
return (this.failure);
72
* Set the failure URI for this mapping.
74
* @param failure The failure URI for this mapping
76
public void setFailure(String failure) {
78
this.failure = failure;
84
* Return the success URI for this mapping.
86
public String getSuccess() {
88
return (this.success);
94
* Set the success URI for this mapping.
96
* @param success The success URI for this mapping
98
public void setSuccess(String success) {
100
this.success = success;