How many implicit variables are used in JSP?what are they?

Showing Answers 1 - 4 of 4 Answers

Implicit objects are created by the Web container and contain information related to a particular request, page, or application. There are 9implict variables

Variable
Class
Description
application
javax.servlet.ServletContext
The context for the JSP page's servlet and any Web components contained in the same application. See Accessing the Web Context.
config
javax.servlet.ServletConfig
Initialization information for the JSP page's servlet.
exception
java.lang.Throwable
Accessible only from an error page. See Handling Errors.
out
javax.servlet.jsp.JspWriter
The output stream.
page
java.lang.Object
The instance of the JSP page's servlet processing the current request. Not typically used by JSP page authors.
pageContext
javax.servlet.jsp.PageContext
The context for the JSP page. Provides a single API to manage the various scoped attributes described in Sharing Information.
This API is used extensively when implementing tag handlers. See Tag Handlers.
request
Subtype of javax.servlet.ServletRequest
The request triggering the execution of the JSP page. See Getting Information from Requests.
response
Subtype of javax.servlet.ServletResponse
The response to be returned to the client. Not typically used by JSP page authors.
session
javax.servlet.http.HttpSession
The session object for the client. See Accessing the Web Context.

 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions