Java Web 詞匯
關(guān)鍵字 釋義
C/S Client-Server 客戶端/服務(wù)端技術(shù)(需要下載客戶端程序)
B/S Browser-Server 瀏覽器/服務(wù)端(基于網(wǎng)頁(yè)的,不需要下載客戶端)
URL(Uniform Resource Locator)統(tǒng)一資源定位符斋陪,也稱為網(wǎng)頁(yè)地址
Servlet servlet是基于java語(yǔ)言的web服務(wù)器端編程技術(shù)
request 請(qǐng)求
response 反饋
getParameter() 獲取參數(shù)
init()(initiate) 初始化方法
service() 服務(wù)方法
destory() 銷毀方法
request.setCharacterEncoding("utf-8")設(shè)置請(qǐng)求編碼格式
response.setCharacterEncoding("utf-8")設(shè)置響應(yīng)編碼格式
response.setContentType("text/html;charset=UTF-8")設(shè)置響應(yīng)內(nèi)容格式和編碼格式
response.getWriter().append()在頁(yè)面輸出append中的內(nèi)容
request.getContextPath() 獲取應(yīng)用程序上下文
request.setAttribute() 設(shè)置setAttribute中的參數(shù)
request.getAttribute() 獲取getAttribute()中的參數(shù)
request.getRequestDispatcher()轉(zhuǎn)發(fā)請(qǐng)求
forward() 將請(qǐng)求轉(zhuǎn)發(fā)給其他資源
response.sendRedirect() 重定向請(qǐng)求
getParameterValues() 獲取參數(shù)數(shù)組
Filter 過(guò)濾器/攔截器
Listener 監(jiān)聽(tīng)器
ServletContextListener 監(jiān)聽(tīng)器接口
HttpSessionListener
ServletRequestListener
ErrorPage 錯(cuò)誤處理頁(yè)
cookie 客戶端用戶緩存
setMaxAge() 設(shè)置cookie生命周期
setPath() 訪問(wèn)路徑設(shè)置
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者