Monday, January 28, 2013

JSP Implict Objects

There are total Nine JSP Implicit Objects. Which are made available by Web Container to Developer.

application : Which is of type ServletContext, Which allows to access configuration values at application level. data kept in application context can be shared by all servlets and JSP's.
PageContext :  It can be used to set, get Or remove the attributes from the following any of the scope i.e page, request, session and application.
request : This object is of type HttpServeltRequest, represents client request
response : This object is of type HttpServeltResponse, represents container response
session : This object is to create session in jsp page and Provide client information for authentication. Session data can read it and update it.
out : This object is used to write the data to buffer. The object out is of type JspWriter
page :  Which represents the current jsp page.
config :  Provide provision to acces configuration values from deployment descriptor.
exception : this object is to handle the exception in jsp page. Which provide exception details.