What is an application Object in JSP?

JSPJava 8Object Oriented ProgrammingProgramming

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.

raja
Published on 20-Mar-2019 07:21:33
Advertisements