Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PageContext

 
ramesh kumar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ramesh kumar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic