el表达式不是Searches for the named attribute in page, request, session吗,也就是通过属性名从
这4个范围获取对象吗,难道在这4个范围中有属性名叫pageContext,通过${pageContext}可以输出一个对象,就是这里是为什么啊,而${request }就不行啊
[quote]难道在这4个范围中有属性名叫pageContext[/quote]
EL的内置对象很多:
pageContext、pageScope 、requestScope 、sessionScope 、 applicationScope
param 、paramValues 、header 、headerValues 、 cookie 、initParam
[quote]
通过${pageContext}可以输出一个对象,就是这里是为什么啊,而${request }就不行啊 [/quote]
没有EL表达式的request对象,只能这样取得: ${pageContext.request}