This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP page object Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "JSP page object" Watch "JSP page object" New topic
Author

JSP page object

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
Hi
I have this question from Eduardo Cobian
Question:
Which statements are true about scope in jsp pages?
1) Objects with page scope are stored in the implicit object PageConttext
2) If a page forwards to another page, objects created with request scope in the source page will be visible in request of the forwarded page
3) Objects with application scope can be created in pages that are not session-aware(with page attribute session=�false�)
4) The implicit page object has pageContext scope
The answers given is 1, 2 & 3.
Isn't 4 true too since the scope of Page is limited to a a single page(pageContext) and single request.
Thanks
-- Ravi


SCJP, SCJD, SCWCD, SCBCD, SCEA
Sathya Sankar
Ranch Hand

Joined: Sep 16, 2000
Posts: 67
Hi Ravi,
Isn't 4 true too since the scope of Page is limited to a a single page(pageContext) and single request.

No. It's the other way round. The implicit object pageContext has page level scope. So do these other implicit objects - page, response, out and config. There is nothing like pageContext level scope.
Ciao,
GSS


SCJP, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSP page object
 
Similar Threads
pageContext why?
page scope
jsp scope problem
Q from Hanu's mock test
question about page scope