wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP implicit objects and them scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSP implicit objects and them scope" Watch "JSP implicit objects and them scope" New topic
Author

JSP implicit objects and them scope

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

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


SCJP, SCJD, SCWCD, OCPJBCD
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
You can set attributes into the page scope the same as the other 3 scopes.

Does that answer your question?
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi Michael,

To be honest no, I don't understand.

Regards,
M
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
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?
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP implicit objects and them scope
 
Similar Threads
JSP Page Scope
default scope of JSP page
Doubt on a simple tag support and c:set tag
doubt in page scope
JSP scope page