EL的11个内置对象

PageScope

requestScope

sessionScope

applicationScope

Param

ParamValues  --接收参数

Header

${header["host"]} 这里得到HTTP连接头部的host值

${header["accept"]} 这里获得HTTP头部的accept值

${header["user-agent"]} 这里获得HTTP头部的user-agent

HeaderValues  --获取请求头信息

InitParam  --获取全局初始化参数

Cookie

pageContext

${pageContext.request.contextPath} //获取web名称

posted @ 2019-05-06 17:17  请叫我靓仔  阅读(331)  评论(0编辑  收藏  举报