1、每個功能頁面在系統(tǒng)中配置菜單時統(tǒng)一使用index.jsp或index.html。例如客戶管理配置的URL為http://Server:Port/cc/custmgr/index.jsp。
2、每個頁面的title必須設置為和菜單配置中相同的中文,例如在菜單項中配置為“客戶管理”,則此頁面的title也要設置為“客戶管理”。
3、對于JSP頁面都需要在頁面的最開始部分增加以下語句
<%@ page contentType="text/html; charset=UTF-8" %>
4、對于HTML頁面都需要在頁面的最開始部分增加以下語句
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
5、對于頁面中控件的屬性設置都需要用雙引號包括起來。
頁面編碼過程中用到的所有控件命名都需要遵循相應規(guī)則,方便程序的可讀性。采用控件類型縮寫前綴(小寫)+英文單詞(第一個字母大寫)的方法來命名每一個控件。具體規(guī)則如下:
控件類型 | 前綴 |
Button | btn |
Form | frm |
Select | sel |
TextArea | txt |
Input | ipt |
Image | img |
DIV | div |
頁面編碼過程中用到的所有變量定義都需要遵循相應規(guī)則,方便程序的可讀性。采用數(shù)據(jù)類型縮寫前綴(小寫)+英文單詞(第一個字母大寫)的方法來命名每一個變量。具體規(guī)則如下:
數(shù)據(jù)類型 | 前綴 |
整數(shù) | i |
小數(shù) | f |
字符 | s |
布爾 | b |
日期 | d |
數(shù)組 | arr |
頁面編碼過程中用到的所有函數(shù)定義都需要遵循相應規(guī)則,方便程序的可讀性。采用前綴(fuc)+英文單詞(第一個字母大寫)的方法來命名每一個函數(shù)。
例如:fucAcceptOrder
頁面的規(guī)范
關鍵字 | 說明 |
body | 頁面內容基本樣式 |
表格的規(guī)范
關鍵字 | 說明 |
table | 表格的基本樣式 |
層的規(guī)范
關鍵字 | 說明 |
div | 層的基本樣式 |
鏈接的規(guī)范
關鍵字 | 說明 |
a | 超鏈接的基本樣式 |
DataGrid的規(guī)范
關鍵字 | 說明 |
table.datatable | 數(shù)據(jù)表的基本樣式 |
table.datatable thead | 數(shù)據(jù)表的頁眉樣式 |
table.datatable tbody | 數(shù)據(jù)表的表格體樣式 |
table.datatable tfoot | 數(shù)據(jù)表的頁腳樣式 |
table.datatable tr.row_odd | 數(shù)據(jù)表的奇數(shù)行樣式 |
table.datatable tr.row_even | 數(shù)據(jù)表的偶數(shù)樣式 |
table.datatable tr.row_selected | 數(shù)據(jù)表的選中行樣式 |
table.datatable tr.row_active | 數(shù)據(jù)表的當前激活表格的選中行樣式 |
table.datatable td.indicate | 數(shù)據(jù)表的指示器樣式 |
下拉表格的規(guī)范
關鍵字 | 說明 |
table.dropdowntable | 下拉表格的基本樣式 |
table.dropdowntable thead | 下拉表格的頁眉樣式 |
table.dropdowntable tbody | 下拉表格的表格體樣式 |
table.dropdowntable tfoot | 下拉表格的頁腳樣式 |
table.dropdowntable tr.row_odd | 下拉表格的奇數(shù)行樣式 |
table.dropdowntable tr.row_even | 下拉表格的偶數(shù)行樣式 |
table.dropdowntable tr.row_selected | 下拉表格的選中行樣式 |
編輯框
關鍵字 | 說明 |
.editor | 編輯框的基本樣式 |
.editor_active | 激活的編輯框的基本樣式 |
按鈕
關鍵字 | 說明 |
.button | 按鈕的基本樣式 |
.button_down | 被按下按鈕的基本樣式 |
數(shù)據(jù)導航條控件
關鍵字 | 說明 |
table.datapilot | 數(shù)據(jù)導航條的基本樣式 |
樹狀列表控件
關鍵字 | 說明 |
table.tree | 樹狀列表的基本樣式 |
table.tree tr.row_odd | 樹狀列表奇數(shù)行的基本樣式 |
table.tree tr.row_even | 樹狀列表偶數(shù)行的基本樣式 |
table.tree tr.row_selected | 樹狀列表當前行的基本樣式 |
table.tree tr.row_rightclick | 樹狀列表的響應當前鼠標右擊的行基本樣式 |
table.tree .expandbutton | 樹狀列表展開按鈕的基本樣式 |
table.tree .icon | 樹狀列表的圖標樣式 |
字段標題控件
關鍵字 | 說明 |
.fieldlabel | 字段標題的樣式 |
數(shù)據(jù)標簽控件
關鍵字 | 說明 |
.datalabel | 數(shù)據(jù)標簽的基本樣式 |
標簽頁控件
關鍵字 | 說明 |
.tabset | 標簽頁的基本樣式 |
.tab | 標簽頁中的單個標簽的樣式 |
菜單控件
關鍵字 | 說明 |
table.menu | 菜單的基本樣式 |
table.menu tr | 菜單行的基本樣式 |
table.menu tr.row_selected | 菜單選中行的基本樣式 |
table.menu tr.row_disabled | 菜單無效行的基本樣式 |
菜單工具條控件
關鍵字 | 說明 |
table.menubar | 菜單工具條的基本樣式 |
table.menubar .button | 菜單工具條中按鈕的基本樣式 |
table.menubar .button_active | 菜單工具條中當前按鈕的基本樣式 |
table.menubar .button_hot | 菜單工具條相應鼠標的按鈕的基本樣式 |
下拉選單的邊框控件
關鍵字 | 說明 |
.dropdown_frame | 下拉選單的邊框的樣式 |
日歷控件
關鍵字 | 說明 |
.calendar | 日歷控件的基本樣式 |
.calendar .title | 日歷控件頁眉的基本樣式 |
.calendar .footer | 日歷控件頁腳的基本樣式 |
.calendar .cell_day | 日歷控件日期單元格的基本樣式 |
.calendar .cell_selected | 日歷控件當前單元格的基本樣式 |
.calendar .cell_trailing | 日歷中前月和后月的日期單元格的基本樣式 |
jakarta-taglibs-standard-current.tar.gz
jakarta-taglibs-standard-1.1.2/tld/c.tld
拷貝到
WEB/INF/tlds
目錄jakarta-taglibs-standard-1.1.2/lib
中的所有JAR文件拷貝到
WEB-INF/lib
目錄(jstl.jar和standard.jar)WEB-INF/web.xml
部署描述符中c
?<%@taglib?uri="http://java.sun.com/jsp/jstl/core"?prefix="c"%>?
<c:if?test="${param.sayHello}">
????????<!--?Let's?welcome?the?user?${param.name}?-->
????????Hello?${param.name}!
</c:if>
<c:out?value="Hello?World"/>
????
oracle sql日期比較:?? MySql的備份可用命令mysqldump ,使用方法很簡單,mysqldump -u?用戶名 -p (密碼)?-h 主機名 數(shù)據(jù)庫名 >路徑/備份名.bak;同時也可以是用mysqldump到處數(shù)據(jù)結構(tablename.sql)和數(shù)據(jù)(tablename.txt) mysqldump -u?用戶名??-p (密碼)? -h 主機名 數(shù)據(jù)庫名 tablename1 tablename2 > back.sql或mysqldump -u?用戶名?-p (密碼) -h 主機名 數(shù)據(jù)庫名 --tab 路徑 --opt 數(shù)據(jù)庫名.
在今天之前:select?*?from?up_date?where?update?<?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
select?*?from?up_date?where?update?<=?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
在今天只后:select?*?from?up_date?where?update?>?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
select?*?from?up_date?where?update?>=?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
精確時間:select?*?from?up_date?where?update?=?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
在某段時間內:select?*?from?up_date?where?update?between?to_date('2007-07-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')?and?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
select?*?from?up_date?where?update?<?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')?and?update?>?to_date('2007-07-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
select?*?from?up_date?where?update?<=?to_date('2007-09-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')?and?update?>=?to_date('2007-07-07?00:00:00','yyyy-mm-dd?hh24:mi:ss')
???那么還原可以mysql命令,mysql -u?用戶名?-p (密碼) -h 主機名 --one-database 還原數(shù)據(jù)庫名 < 路徑/備份名.bak,--one-database是指定要恢復的數(shù)據(jù)庫.
? (括號表示密碼不先輸入,在連接時在Enter password;若密碼為空可缺省-p參數(shù))