~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to src/example/org/apache/struts/webapp/example/Constants.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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 $
 
3
 * $Revision: 1.7 $
 
4
 * $Date: 2004/03/14 06:23:44 $
 
5
 *
 
6
 * Copyright 1999-2004 The Apache Software Foundation.
 
7
 * 
 
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
 
11
 * 
 
12
 *      http://www.apache.org/licenses/LICENSE-2.0
 
13
 * 
 
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.
 
19
 */
 
20
 
 
21
 
 
22
package org.apache.struts.webapp.example;
 
23
 
 
24
 
 
25
/**
 
26
 * Manifest constants for the example application.
 
27
 *
 
28
 * @version $Revision: 1.7 $ $Date: 2004/03/14 06:23:44 $
 
29
 */
 
30
 
 
31
public final class Constants {
 
32
 
 
33
 
 
34
    /**
 
35
     * The package name for this application.
 
36
     */
 
37
    public static final String PACKAGE = "org.apache.struts.webapp.example";
 
38
 
 
39
 
 
40
    /**
 
41
     * The token representing "failure" for this application.
 
42
     */
 
43
    public static final String FAILURE = "failure";
 
44
 
 
45
 
 
46
    /**
 
47
     * The token representing "success" for this application.
 
48
     */
 
49
    public static final String SUCCESS = "success";
 
50
 
 
51
 
 
52
    /**
 
53
     * The application scope attribute under which our user database
 
54
     * is stored.
 
55
     */
 
56
    public static final String DATABASE_KEY = "database";
 
57
 
 
58
 
 
59
    /**
 
60
     * The session scope attribute under which the Subscription object
 
61
     * currently selected by our logged-in User is stored.
 
62
     */
 
63
    public static final String SUBSCRIPTION_KEY = "subscription";
 
64
 
 
65
 
 
66
    /**
 
67
     * The session scope attribute under which the User object
 
68
     * for the currently logged in user is stored.
 
69
     */
 
70
    public static final String USER_KEY = "user";
 
71
 
 
72
 
 
73
    /**
 
74
     * A static message in case database resource is not loaded.
 
75
     */
 
76
    public static final String ERROR_DATABASE_NOT_LOADED =
 
77
        "ERROR:  User database not loaded -- check servlet container logs for error messages.";
 
78
 
 
79
 
 
80
    /**
 
81
     * A static message in case message resource is not loaded.
 
82
     */
 
83
    public static final String ERROR_MESSAGES_NOT_LOADED =
 
84
        "ERROR:  Message resources not loaded -- check servlet container logs for error messages.";
 
85
 
 
86
 
 
87
    /**
 
88
     * The request attributes key under the WelcomeAction stores an ArrayList
 
89
     * of error messages, if required resources are missing.
 
90
     */
 
91
    public static final String ERROR_KEY = "ERROR";
 
92
 
 
93
}