原文地址  http://blog.sina.com.cn/s/blog_5e9531a20100cc5k.html


JSP的隐含对象:

JSP隐含对象TypeScope常用的方法
requestSubclass of javax.servlet.ServletRequestRequestgetAttribute, getParameter, getParameterNames, getParameterValues, setAttribute
responseSubclass of javax.servlet.ServletResponsePageNot typically used by JSP page authors
pageContextjavax.servlet.jsp.PageContextPagefindAttribute, getAttribute, getAttributesScope, getAttributeNamesInScope, setAttribute
sessionjavax.servlet.http.HttpSessionSessiongetAttribute, getId, setAttribute
applicationjavax.servlet.ServletContextApplicationgetAttribute, getMimeType, getRealPath, setAttribute
outjavax.servlet.jsp.JspWriterPageclear, clearBuffer, flush, getBufferSize, getRemaining
configjavax.servlet.ServletConfigPagegetInitParameter, getInitParameterNames
pagejava.lang.ObjectPageNot typically used by JSP page authors
exceptionjava.lang.ThrowablePagegetMessage, getLocalizedMessage, printStackTrace, toString

 

 

 

 

EL表达式的隐含对象

EL表达式的隐含对象Type具体说明
pageContextjavax.servlet.jsp.PageContextThe context for the JSP page.
Provides access to various
objects, including servletContext, session, request,
and response.
pageScopejava.util.MapMaps page-scoped variable names
to their values.
requestScopejava.util.MapMaps request-scoped variable
names to their values.
sessionScopejava.util.MapMaps session-scoped variable
names to their values.
applicationScopejava.util.MapMaps application-scoped variable
names to their values.
paramjava.util.MapMaps a request parameter to a
single String parameter value
(obtained by calling
ServletReqwuest.getParameter
(String name)).
paramValuesjava.util.MapMaps a request parameter name to
an array of String values for
that parameter name (obtained by
calling
ServletRequest.getParameterValues
(String name)).
headerjava.util.MapMaps a request header name to a
single String header value
(obtained by calling
ServletRequest.getHeader(String
name)).
headerValuesjava.util.MapMaps a request header name to an
array of String values for that
header (obtained by calling
ServletRequest.getHeaders
(String)).
coookiejava.util.MapMaps a cookie name to a single
Cookie object. Cookies are
retrieved according to the
semantics of
HttpServletRequest.getCookies().
If the same name is shared by
multiple cookies, an
implementation must use the first
one encountered in the array of
Cookie objects returned by the
getCookies() method. However, the
ordering of cookies is currently
unsspecified in the Servlet specification.
initParamjava.util.MapMaps a context initialization
parameter name to a String
parameter value (obtained by
calling
ServletContext.getInitparameter
(String name)).

原文地址  http://blog.sina.com.cn/s/blog_5e9531a20100cc5k.html