Implicit objects in JSP, list of Implicit Objects in JSP, JSP Implicit Objects


Implicit objects in JSP, list of Implicit Objects in JSP, JSP Implicit Objects

The JSP provide the 9 implicit Objects for doing any specific task in JSP, these all objects has the unique meaning and each is given the facility to invoke the methods defined into the its class like the session is the object of HttpSession interfce, out is the object of PrintWriter class etc, all the methods has the power of invoking the all methods and properties of its Class or Interface.

Here is a List of 9 implicit objects provided by JSP:-

out:- out is the object of JspWrite class which is similar to the PrintWriter class which we have used in Servlets which is used to print any value on the browser.
request:- request is the object of HttpServletRequest interface which is used to get the request from the client.
response:- response is the object of HttpServletResponse interface which is used to set the response for the client.
config:- config is the object of Servlet config interface, it is used to get the configuration for a JSP page from a web.xml file. It is used to get info for a single jsp page.
application:- application is the object of ServletContext interface, it is used to get the configuration information from the web.xml file. It can be used to get info for all jsp pages of an application.
session:- session is the object of HttpSession interface, it is used to create , set, get and destroy the session variables.
pageContext:- pageContext is the object of pageContext class. It is used to store any value which can be available by the page, request, session & application scopes to the other pages.
page:- page object is the object of Object class. It is used to assign the current class reference.
exception:- exception is the object of Throwable class. It is used in error page of a JSP application.

If you want to know more about the implicit objects then visit the next tutorials of this site.


Read the all implicit objects in depth with example
  1. out object with example
  2. request object with example
  3. response object with example
  4. config object with example
  5. session object with example
  6. application object with example
  7. pageContext object with example
  8. exception object with example
Thanks for visiting

{ 0 comments... read them below or add one }

Post a Comment