8. JSP implicit objects


JSP implicit objects

JSP implicit objects are created by web container in the translation phase. These objects are created inside the service method so can be used in scriplet tag without any explicitly declaration and initialization. These objects are also known as pre-defined variables.

JSP implicit objects are 9 and given below:

  1. 1. out (JspWriter).
  2. 2. request (HttpServletRequest).
  3. 3. response (HttpServletResponse).
  4. 4. config (ServletConfig).
  5. 5. application (ServletContext).
  6. 6. session (HttpSession).
  7. 7. pageContext (PageContext).
  8. 8. page (Object).
  9. 9. exception (Throwable).