What is an application Object in JSP?


The application object is direct wrapper around the ServletContext object for the generated Servlet and in reality an instance of a javax.servlet.ServletContext object.

This object is a representation of the JSP page through its entire lifecycle. This object is created when the JSP page is initialized and will be removed when the JSP page is removed by the jspDestroy() method.

By adding an attribute to application, you can ensure that all JSP files that make up your web application have access to it.

Updated on: 30-Jul-2019

315 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements