Tuesday, 5 April 2016

What are implicit objects in JSP ?


These objects are created by Web container and contain information related to a particular request, page, or application.

1. request (javax.servlet.ServletRequest)
The request triggering the execution of the JSP page.

2. response (javax.servlet.ServletResponse)
The response to be returned to the client. Not typically used by JSPpage authors.

3. session (javax.servlet.http.HttpSession)
The session object for the client.

4. application (javax.servlet.ServletContext)
The context for the JSP page's servlet and any Web components contained in the same application.

5. config (javax.servlet.ServletConfig)
Initialization information for the JSP page's servlet.

6. exception (java.lang.Throwable)
Accessible only from an error page.

7. out (javax.servlet.jsp.JspWriter)
The output stream.

8. page (java.lang.Object)
The instance of the JSP page's servlet processing the current request. Not typically used by JSP page authors.

9. pageContext (javax.servlet.jsp.PageContext)
The context for the JSP page. Provides a single API to manage the various scoped attributes.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.