?? constents.java
字號:
package com.elan.forum.util;
public class Constents {
public static String CONTEXTPATH = "/ElanNet";
public static String PATH_INDEX_FORUM = "<a href=\"/ElanNet/forum/Test.jsp\">網站首頁</a>>><a href=\"/ElanNet/forum/Test.jsp\">商城社區</a>";
public static StringBuffer PATH_INDEX = null;
public static StringBuffer PATH_FORUM = null;
public static String SESSION_CONTAINER_KEY = "sessionContainer";
public static String FORUMUSER_KEY = "forumUser";
public static String USER_LOGON_ERROR_KEY = "userLogonFailure";
//用戶修改信息成功
public static int USER_MODIFY_SUCCESS = 1;
public static int CURRENT_OPERATION_SUCCESS = 1;
public static int CURRENT_OPERATION_ERROR = -1;
public static int DELETE_USER_ERROR = 2;
public static String TOPIC_SESSIONCONTAINER_KEY= "com.elan.forum.actions.util.TopicSessionContainer";
public static Integer DEFAULT_PAGE_SIZE = 10;
//設置顯示piece下面文章的條數 10
public static Integer piecePageSize = new Integer(10);
//設置回復topic的條數 8
public static Integer topicReplyPageSize = new Integer(8);
//設置下那是全部范圍的新發的帖子的頁碼大小
public static Integer newPostTopicPageSize = new Integer(20);
//設置下面返回新帖子的條數 30條
public static Integer newPostTopicCount = new Integer(30);
//設置hot的反戶條數
public static Integer hotTopicCount = new Integer(10);
//設置搜索的返回最大頁碼大小
public static Integer searchPageSize = new Integer(10);
// 設置精華帖子的頁碼大小
public static Integer essencePageSize = new Integer(10);
private static long theDayTopicNum = 0; // 當天數
private static long topicNum = 0; // topic數
private static long topicAllNum = 0; // 總的數,包裹回復
private static long userNum = 0;
private static String newUser = "No New";
//private static String
static {
PATH_INDEX = new StringBuffer("網站首頁>>");
PATH_FORUM = new StringBuffer("商城社區>>");
}
public static synchronized void addTopicNum() {
++theDayTopicNum;
++topicNum;
++topicAllNum;
}
public static long getTheDayTopicNum() {
return theDayTopicNum;
}
public static long getTopicNum() {
return topicNum;
}
public static long getTopicAllNum() {
return topicAllNum;
}
public static synchronized void addUserNum() {
++userNum;
}
public static long getUserNum() {
return userNum;
}
public static synchronized void setNewUser(String newUser) {
Constents.newUser = newUser;
}
public static String getNewUser() {
return newUser;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -