首页 > 代码库 > JSP11个用于EL表达式的内置对象

JSP11个用于EL表达式的内置对象

JSP内置对象9个:request

                                                 对象                                          常用方法

requestgetAttribute()setAttribute()getParameter()getParameterNames()getParameterVaules()
sessiongetAttrubute()setAttribute()getId()
response                                                      --
ApplicationgetAttribute()setAttribute()getMimeType()getRealPath()
page                                                       --
pageContextgetAttribute()setAttribute()findAttribute()getAttributesScope()getAttributeNamesInScope()
outclear()  clearBuffer() flash() getBufferSize() getRamining()
configgetInitParameter()getInitParamNames()
exceptiongetMessage()getLocalizedMessage()toString() PrintStackTrack()

,session,response,Application,page,PageContext,out,config,exception

四个数据存储对象:requestScpoe,sessionScope,ApplicationScope,cookie

用EL表达式隐含对象11个:PageContext,PageScope,Param,ParamValues,header,headerValues,initParam,requestScope,sessionScope,

ApplicationScope,cookie

JSP11个用于EL表达式的内置对象