O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required