constants.java~44~

来自「一个自己做的公司网站和办公职员管理系统。」· JAVA~44~ 代码 · 共 162 行

JAVA~44~
162
字号
package ws.woa.core;

/**
 * 僔僗僥儉偱巊梡偡傞掕悢傪掕媊偟傑偡丅
 *
 * @author Wang
 */
public class Constants {

    ////////////////////////////////////////////////////////////////////
    // 僐傾儌僕儏乕儖偺JSP僼傽僀儖

    /** 嫟捠僿僢僟偺JSP僼傽僀儖 */
    public static final String JSP_HEADER = "/ui/core/Header.jsp";

    /** 僫價僎乕僔儑儞僶乕偺JSP僼傽僀儖  */
    public static final String JSP_NAVI   = "/ui/core/Navigation.jsp";

    /** 嫟捠僼僢僞偺JSP僼傽僀儖丅 */
    public static final String JSP_FOOTER = "/ui/core/Footer.jsp";

    /** 儘僌僀儞夋柺偺JSP僼傽僀儖 */
    public static final String JSP_LOGIN  = "/ui/core/Login.jsp";

    /** 屄恖忣曬曄峏夋柺偺JSP僼傽僀儖 */
    public static final String JSP_MYINFOFORM = "/ui/core/MyInfoForm.jsp";

    /** 僌儖乕僾娗棟婡擻丒僌儖乕僾堦棗夋柺偺JSP僼傽僀儖 */
    public static final String JSP_GROUPLIST = "/ui/core/GroupList.jsp";

    /** 僌儖乕僾娗棟婡擻丒僌儖乕僾擖椡夋柺偺JSP僼傽僀儖 */
    public static final String JSP_GROUPFORM = "/ui/core/GroupForm.jsp";

    /** 儐乕僓娗棟婡擻丒儐乕僓堦棗偺JSP僼傽僀儖 */
    public static final String JSP_USERLIST = "/ui/core/UserList.jsp";

    /** 儐乕僓娗棟婡擻丒儐乕僓擖椡夋柺偺JSP僼傽僀儖 */
    public static final String JSP_USERFORM = "/ui/core/UserForm.jsp";

    /** 儌僕儏乕儖堦棗夋柺偺JSP僼傽僀儖 */
    public static final String JSP_MODULELIST = "/ui/core/ModuleList.jsp";

    /** 儐乕僓忣曬夋柺偺JSP僼傽僀儖 */
    public static final String JSP_USERINFO = "/ui/core/UserInfo.jsp";

    ////////////////////////////////////////////////////////////////////
    // Request Parameters and Session Attributes

    /** Login request parameters */
    public static final String REQ_PARA_LOGIN  = "LOGIN";
    public static final String REQ_PARA_ACCOUNT  = "Account";
    public static final String REQ_PARA_PASSWORD  = "Password";

    /** Session attributes */
    public static final String REQ_ATTR_USERINFO  = "userInfo";

    ////////////////////////////////////////////////////////////////////
    // Response Page Parameters

    /** Response page content type */
    public static final String RES_CONTENTTYPE  = "text/html; charset=Shift_JIS";

    ////////////////////////////////////////////////////////////////////
    // System Parameter

    /** System name */
    public static final String SYS_NAME = "WOA";
    /** System version */
    public static final String SYS_VERSION = "0.1";

    ////////////////////////////////////////////////////////////////////
    // Manager Name

    /** Data source manager name */
    public static final String MGR_DS = "system";
    /** Log manager name */
    public static final String MGR_LOG = "system";

    ////////////////////////////////////////////////////////////////////
    // Module Name

    /** Login module */
    public static final String MOD_LOGIN = "login";
    /** Portal module */
    public static final String MOD_PORTAL = "portal";
    /** Portal-menu module */
    public static final String MOD_PORTALMENU = "portal-menu";
    /** Moduleinfo module */
    public static final String MOD_MODULELIST = "modulelist";
    /** Myinfo module */
    public static final String MOD_MYINFO = "myinfo";
    /** Group module */
    public static final String MOD_GROUP = "group";
    /** User module */
    public static final String MOD_USER = "user";
    /** Newsadmin module */
    public static final String MOD_NEWSADMIN = "newsadmin";
    /** Newsportal module */
    public static final String MOD_NEWSPORTAL = "newsportal";
    /** Newsview module */
    public static final String MOD_NEWS = "news";
    /** Forumadmin module */
    public static final String MOD_FORUMADMIN = "forumadmin";
    /** Forum module */
    public static final String MOD_FORUM = "forum";


    // Begin - Strings for multi-langauge
    ////////////////////////////////////////////////////////////////////
    // Display Strings
    /** Use flag strings */
    public static final String DIS_USABLE  = "Usable";
    public static final String DIS_UNUSABLE  = "Unusable";
    /** Group type strings */
    public static final String DIS_GROUP_ADMIN  = "Manager Group";
    public static final String DIS_GROUP_NORMAL  = "Normal Group";
    /** Accept flag strings */
    public static final String DIS_ACCEPTTYPE_GROUP = "GroupUnit";
    public static final String DIS_ACCEPTTYPE_USER = "UserUnit";
    public static final String DIS_ACCEPTTYPE_ALL = "All";
    public static final String DIS_ACCEPTTYPE_NO = "None";


    ////////////////////////////////////////////////////////////////////
    // Error Message Strings

    /**
     * 儘僌僀儞偑昁梫側応崌偺僄儔乕儊僢僙乕僕丅
     * 乽儘僌僀儞偟偰偄側偄偐丄僙僢僔儑儞僞僀儉傾僂僩偱偡丅乿
     */
    public static final String MSG_ERR_NEEDLOGIN  = "No login information, session logout.";

    /**
     * 傾僋僙僗尃尷偑側偄応崌偺僄儔乕儊僢僙乕僕丅
     * 乽偙偺儁乕僕傪墈棗偡傞尃尷偼偁傝傑偣傫丅乿
     */
    public static final String MSG_ERR_PERMISSION = "You can not read this page.";

    /** Login error message */
    public static final String MSG_ERR_ACCOUNT = "Please input account.";
    public static final String MSG_ERR_PASSWORD = "Please input password.";
    public static final String MSG_ERR_ACCOUNTPASSWORD = "Account or password is error.";

    ////////////////////////////////////////////////////////////////////
    // Other Message Strings
    /** Go back message */
    public static final String MSG_GOBACK  = "Go Back.";

    /** No more DB connection message */
    public static final String MSG_DS_NOMORE_CONN  =
        "No more DB connection, please wait a moment to try again.";
    /** No DataSource message */
    public static final String MSG_DS_NO_DS  =
        "No Data Source, please wait a moment to try again.";

    /** Login error message */
    public static final String MSG_ERR_PARAMETER = "Parameter is error.";


    // End - Strings for multi-langauge
}

⌨️ 快捷键说明

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