Each implicit object has a class or interface type defined in a core Java technology or Java
Servlet API package, as shown in
TABLE 2 2
.
TABLE 2 2
Implicit Objects Available in JSP Pages
Implicit Variable
Of Type
What It Represents
Scope
request
protocol dependent subtype of
:
The request triggering the
request
javax.servlet.ServletRequest
service invocation.
e.g:
javax.servlet.HttpServletRequest
response
protocol dependent subtype of
:
The response to the request.
page
javax.servlet.ServletResponse
e.g:
javax.servlet.HttpServletResponse
pageContext
javax.servlet.jsp.PageContext
The page context for this JSP
page
page.
session
javax.servlet.http.HttpSession
The session object created for
session
the requesting client (if any).
This variable is only valid for
Http protocols.
application
javax.servlet.ServletContext
The servlet context obtained
application
from the servlet configuration
object (as in the call
getServletConfig().get
Context()
)
out
javax.servlet.jsp.JspWriter
An object that writes into the
page
output stream.
config javax.servlet.ServletConfig
The
ServletConfig
for this
page
JSP page
page
java.lang.Object
the instance of this page's
page
implementation class processing
the current request
1
1. When the scripting language is java then page is a synonym for this in the body of the page.
53
JavaServer Pages 1.1 Specification
November 30, 1999
JSP Web Hosting JavaServer Pages Specifications JSP Hosting
|
|
|
|
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved. |