aspose file tools*
The moose likes JSP and the fly likes PageContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "PageContext" Watch "PageContext" New topic
Author

PageContext

ramesh kumar
Greenhorn

Joined: Aug 15, 2006
Posts: 25
i find in one book that "PageContext is container to all implicit objects and user defined objects.It Provides setters and getters to use these objects".But my dought is how it can provide getters and setters for user defined objects can any body explain me this sentence
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

PageContext is container to all implicit objects and user defined objects.It Provides setters and getters to use these objects...

I would venture to guess that this is bad editing and what the author meant was that the PageContext provides getters and setters to use the implicit objects/properties provided by the PageContext class. It can also mean that there is a getter/setter for the attribute property which is how the user defined object would be stored and retrieved, just like from the HttpServletRequest and HttpSession.


GenRocket - Experts at Building Test Data
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61624
    
  67

The proper term for instances of objects stored in the various scopes, including page scope, is scoped variables.

And I agree with Gregg -- the passage is worded badly.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ramesh kumar
Greenhorn

Joined: Aug 15, 2006
Posts: 25
Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PageContext