KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > webapp > example > Constants


1 /*
2  * $Id: Constants.java 54929 2004-10-16 16:38:42Z germuska $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19
20 package org.apache.struts.webapp.example;
21
22
23 /**
24  * Manifest constants for the example application.
25  *
26  * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
27  */

28
29 public final class Constants {
30
31
32     /**
33      * The package name for this application.
34      */

35     public static final String JavaDoc PACKAGE = "org.apache.struts.webapp.example";
36
37
38     /**
39      * The token representing "failure" for this application.
40      */

41     public static final String JavaDoc FAILURE = "failure";
42
43
44     /**
45      * The token representing "success" for this application.
46      */

47     public static final String JavaDoc SUCCESS = "success";
48
49
50     /**
51      * The application scope attribute under which our user database
52      * is stored.
53      */

54     public static final String JavaDoc DATABASE_KEY = "database";
55
56
57     /**
58      * The session scope attribute under which the Subscription object
59      * currently selected by our logged-in User is stored.
60      */

61     public static final String JavaDoc SUBSCRIPTION_KEY = "subscription";
62
63
64     /**
65      * The session scope attribute under which the User object
66      * for the currently logged in user is stored.
67      */

68     public static final String JavaDoc USER_KEY = "user";
69
70
71     /**
72      * A static message in case database resource is not loaded.
73      */

74     public static final String JavaDoc ERROR_DATABASE_NOT_LOADED =
75         "ERROR: User database not loaded -- check servlet container logs for error messages.";
76
77
78     /**
79      * A static message in case message resource is not loaded.
80      */

81     public static final String JavaDoc ERROR_MESSAGES_NOT_LOADED =
82         "ERROR: Message resources not loaded -- check servlet container logs for error messages.";
83
84
85     /**
86      * The request attributes key under the WelcomeAction stores an ArrayList
87      * of error messages, if required resources are missing.
88      */

89     public static final String JavaDoc ERROR_KEY = "ERROR";
90
91 }
92
Popular Tags