JSP內建對象

來源:互聯網
上載者:User

標籤:http   io   ar   os   sp   strong   on   bs   tt   

jsp隱含對象

request:請求對象(如請求標題、方法、參數)  scope:Request

getParameter()//

getParameterNames()//

getParameterValues()//

response:相應對象  scpoe:Page

pageContext:頁面內容物件(當前頁面啟動並執行一些屬性)  scope:Page

findAttribute()//

getAttribute()//

getAttributeScope()//

session:回話對象(伺服器與用戶端所建立的回話,用於不同的JSP頁面中保留客戶的資訊,如:線上購物、客戶軌跡跟蹤)  scope:Session

getId()、getValue()、getValueNames()、putValue()

HTTP:無狀態協議

Web server:對每一個用戶端請求都沒有曆史記憶

session:儲存用戶端狀態資訊

由Web sever:存於用戶端

用戶端的每次訪問都要把session記錄傳遞給Web server

Web server讀取用戶端提交的session來擷取用戶端的狀態資訊

application:應用程式物件  scope:Application

out:輸出對象  scope:Page

clear()、clearBuffer()、flush()、print()、println()

config:設定物件  scope:Page

page:頁面對象  scope:Page

exception:異常對象  scope:Page

getMessage()、toString()

 

JSP內建對象

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.