Forums Register Login

Doubt Regarding implicit objects

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
a scope container ? What does it mean ?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
JSPs have the Page scope. There are 4 scopes


Page
Request
Session
Application
+Pie Number of slices to send: Send
They do,
But the Page scope is accessed through the pageContext implicit object, not the Page implicit object.
+Pie Number of slices to send: Send
Thank you one and all........
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1156 times.
Similar Threads
JSP Question
Need Help
jsp doubt
about implicit JSP objects
Page scope object
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:15:33.