6.7 IMPLICIT JSP OBJECTS

In a Servlet, there are objects available for the programmer but they have to be initialized specifically. For example, to get a session object, the HttpSession's getSession method is invoked in the Servlet. But in a JSP these objects are available by default. They help the content to be dynamic. The objects are named below. Their methods can be accessed directly using the respective objects.

Object Description
application This is the context object (javax.servlet.ServletContext). The context is commonly referred to as the application's environment in which the JSP executes.
Config Initialization information for the page's Servlet. (javax.servlet.ServletConfig)
Exception Used along with the error directive ...

Get Web Technology: Theory and Practice 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.