• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt Regarding implicit objects

 
Hanuma Deepak Muvvala
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In one of the books I read I found a question, can any one explain it


Which of the following implicit objects does not represent a scope container?
(Select one)
a application
b session
c request
d page
e pageContext

answer Given is d) page.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a scope container ? What does it mean ?
 
Mark Garland
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never heard the term "scope container", however you could argue that all of the others point at a scope...

a application = application/context scope
b session = session scope
c request = request scope
d page
e pageContext = page scope

Page just points to the page object (i.e. like 'this'), which isn't a scope.
 
arulk pillai
Author
Ranch Hand
Posts: 3388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs have the Page scope. There are 4 scopes


Page
Request
Session
Application
 
Mark Garland
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They do,
But the Page scope is accessed through the pageContext implicit object, not the Page implicit object.
 
Hanuma Deepak Muvvala
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you one and all........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic