Forums Register Login

JSP implicit objects and them scope

+Pie Number of slices to send: Send
Hi,

I have a small problem, as far as I know the JSP defined four scopes : application, session, request and page. The last one, the page scope is refers the generated Servlet.
My question is "is the page scope a scope container" ?

Regards
M
+Pie Number of slices to send: Send
You can set attributes into the page scope the same as the other 3 scopes.

Does that answer your question?
+Pie Number of slices to send: Send
Hi Michael,

To be honest no, I don't understand.

Regards,
M
+Pie Number of slices to send: Send
You need to be more specific. I answered your question. Do you understand the concept of scope and understand the other 3 scopes but do not understand the page scope? What exactly do you not understand?
+Pie Number of slices to send: Send
Hi Michael,

I understand the scope concept and I don't have any problem with the classical three scopes (application, session, request). I also understand what the page scope is. It was my mistake. I got the question :


Which of the following implicit objects does not represent a scope container ?
a:application
b:session
c:request
d: page
e: pageContext.



the answer is d, because the page scope represents the translation unit only during a request. So this implicit object does not have any scope (in the given list), the pageContext has(represents) a scope the page scope.
The question was tricky.

Thanks,
M.
[ October 08, 2007: Message edited by: Mihai Radulescu ]
I didn't say it. I'm just telling you what this tiny ad said.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1594 times.
Similar Threads
Doubt on a simple tag support and c:set tag
JSP scope page
doubt in page scope
default scope of JSP page
JSP Page Scope
More...

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