Implicit Objects

When you use scripting elements in a JSP page, you always have access to a number of objects (listed in Table 1-12) that the web container makes available. These objects are instances of classes defined by the servlet and JSP specifications. Each class is described in detail in this section, following the table.

Table 1-12. Implicit JSP objects

Variable name

Java type

application

javax.servlet.ServletContext

config

javax.servlet.ServletConfig

exception

java.lang.Throwable

out

javax.servlet.jsp.JspWriter

page

java.lang.Object

pageContext

javax.servlet.jsp.PageContext

request

javax.servlet.http.HttpServletRequest

response

javax.servlet.http.HttpServletResponse

session

javax.servlet.http.HttpSession

Get JavaServer Pages Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.