Implicit Objects Flashcards
1
Q
implicit objects
A
- Java object that the developer can call directly without being explicitly declared
- aka pre-defined variables
2
Q
request object
A
request.getParameter()
- each time a client requests a page, the JSP engine creates a new object to represent that request
- it is used to request information like parameters, header information, server name, etc.
- it uses getParameter() to access the request parameter
3
Q
response object
A
e.g. response.setContentType(“text/html”)
- it is created by the container for each request to represent the response to the client
- it is used to set content type, add cookies, and redirect to the response page
4
Q
9 types of implicit objects
A
- out
- request
- response
- config
- application
- session
- pageContext
- page
- exception
5
Q
session object
A
for example,
session.getAttribute(“InvANView”)
- it is used to get, set, and remove attributes to session scope and also used to get session information