constants.java

来自「JSP2.0实用教程实例源码」· Java 代码 · 共 50 行

JAVA
50
字号
package app;

public final class Constants {
   /**
     * The package name for this application.
     */
    public static final String Package = "app";


    /**
     * The session scope attribute under which the Username
     * for the currently logged in user is stored.
     */
    public static final String USER_KEY = "user";


    /**
     * The token that represents a nominal outcome
     * in an ActionForward.
     */
    public static final String SUCCESS = "success";


    /**
     * The token that represents the logon activity
     * in an ActionForward.
     */
    public static final String LOGON = "logon";


    /**
     * The token that represents the welcome activity
     * in an ActionForward.
     */
    public static final String WELCOME = "welcome";


    /**
     * The value to indicate debug logging.
     */
    public static final int DEBUG = 1;


    /**
     * The value to indicate normal logging.
     */
    public static final int NORMAL = 0;

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?