constants.java~36~

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

JAVA~36~
148
字号
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_MYINFO = "/ui/core/MyInfo.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 URL */
    public static final String MOD_URL_LOGIN = "login.module";
    /** Login module URL */
    public static final String MOD_URL_PORTAL = "portal.module";


    // 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";
    /** Module title strings */
    public static final String DIS_TITLE_GROUPADMIN  = "Group Manager";
    public static final String DIS_TITLE_USERADMIN  = "User Manager";
    public static final String DIS_TITLE_MODULELIST  = "My Information";
    public static final String DIS_TITLE_MYINFO  = "Module Information";

    /** 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 = "傾僇僂儞僩傪擖椡偟偰偔偩偝偄丅";
    public static final String MSG_ERR_PASSWORD = "僷僗儚乕僪傪擖椡偟偰偔偩偝偄丅";
    public static final String MSG_ERR_ACCOUNTPASSWORD = "傾僇僂儞僩傕偟偔偼僷僗儚乕僪偑晄惓偱偡丅";

    ////////////////////////////////////////////////////////////////////
    // 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 = "僷儔儊乕僞偑晄惓偱偡丅";


    // End - Strings for multi-langauge
}

⌨️ 快捷键说明

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