Chapter 14. Core Java Server Page Components

The Built-In JSP Objects

Java Server Pages create a simplified layer on top of the servlet API. Aside from making it easy to create HTML output, the Java Server Pages API makes it easy to access common objects such as the request, response, and session. You access these objects through built-in object names.

The built-in object names and their associated implementation classes are shown in Table 14.1:

Table 14.1. Built-In JSP Objects and Their Implementation Classes

JSP Object Implementation Class
request HttpServletRequest
response HttpServletResponse
out JspWriter
session HttpSession
application ServletContext ...

Get Special Edition Using Java™ Server Pages and Servlets 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.