2
* $Header: /home/cvs/jakarta-struts/src/example/org/apache/struts/webapp/example/Constants.java,v 1.7 2004/03/14 06:23:44 sraeburn Exp $
4
* $Date: 2004/03/14 06:23:44 $
6
* Copyright 1999-2004 The Apache Software Foundation.
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
22
package org.apache.struts.webapp.example;
26
* Manifest constants for the example application.
28
* @version $Revision: 1.7 $ $Date: 2004/03/14 06:23:44 $
31
public final class Constants {
35
* The package name for this application.
37
public static final String PACKAGE = "org.apache.struts.webapp.example";
41
* The token representing "failure" for this application.
43
public static final String FAILURE = "failure";
47
* The token representing "success" for this application.
49
public static final String SUCCESS = "success";
53
* The application scope attribute under which our user database
56
public static final String DATABASE_KEY = "database";
60
* The session scope attribute under which the Subscription object
61
* currently selected by our logged-in User is stored.
63
public static final String SUBSCRIPTION_KEY = "subscription";
67
* The session scope attribute under which the User object
68
* for the currently logged in user is stored.
70
public static final String USER_KEY = "user";
74
* A static message in case database resource is not loaded.
76
public static final String ERROR_DATABASE_NOT_LOADED =
77
"ERROR: User database not loaded -- check servlet container logs for error messages.";
81
* A static message in case message resource is not loaded.
83
public static final String ERROR_MESSAGES_NOT_LOADED =
84
"ERROR: Message resources not loaded -- check servlet container logs for error messages.";
88
* The request attributes key under the WelcomeAction stores an ArrayList
89
* of error messages, if required resources are missing.
91
public static final String ERROR_KEY = "ERROR";