JSP Implicit Object

JSP Implicit Object:

As we know that every JSP will be translated into servlet class by Web Container and every translated servlet have _jspService method. In this service method there are 9 local variable object, all are ready to use is call JSP Implicit Objects.

Implicit Object                                     Implicit Object Type

1.) request                                             HttpServletRequest

2.) response                                          HttpServletResponse

3.) pageContext                                    PageContext

4.) session                                            HttpSession

5.) application                                     ServletContext

6.) config                                            ServletConfig

7.) out                                                JspWriter

8.) page                                             Object

9.) exception                                     Throwable 

Note: By default all these implicit objects will be initialized by the container inside _jspService() method of translated servlet.

0 comments :

Post a Comment