jsp域物件對應EL表示式域物件
阿新 • • 發佈:2019-01-05
(1)pageScope:獲取jsp中pageContext域屬性,相當於pageContext.getAttribute("xxx")
(2)requestScope:獲取request域屬性,相當於request.getAttribute("xxx")
(3)sessionScope:獲取session域屬性,相當於session.getAttribute("xxx")
(4)applicationScope:獲取application域屬性,相當於application.getAttribute("xxx")
【jsp中】 【EL表示式中】
Page pageScope
Request requestScope
Session sessionScope
Application applicationScope
範圍由小到大:
pageScope / requestScope / sessionScope / applicationScope