File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes PageContext Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply 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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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
 
Similar Threads
Problem passing parameter with optionsCollection
Private variable problem
Q from Hanu's mock test
about pageContext
More about the domain objects in the domain layer