JSP Implicit Objects

These objects are available implicitly in JSP scriptlet code. Variables are available of the types defined for these objects in the JSP specification. The types (Java classes) for these variables are detailed in the Table 28-1.

Table 28-1. JSP Objects Implicitly Available
ObjectClassDescription Scope
requestjavax.servlet.ServletRequestRepresents the request from the client.request
responsejavax.servlet.ServletResponseThe response to be formulated for the request.page
pageContextjavax.servlet.PageContextRepresents the JSP page.page
sessionjavax.servlet.HttpSessionContains session variables and information about session activity.session
applicationjavax.servlet.ServletContextApplication information, including application variables. ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.