Implicit Objects Flashcards

1
Q

implicit objects

A
  • Java object that the developer can call directly without being explicitly declared
  • aka pre-defined variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

9 types of implicit objects

A
  • out
  • request
  • response
  • config
  • application
  • session
  • pageContext
  • page
  • exception
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly