This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implicit objects

 
Mathew Ung
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The below implicit objects are a bit confusing, how is page different from pageContext and whats the purpose of config ?

�page – java.lang.object, refers to the page’s servlet instance
�pageContext – javax.servlet.jsp.PageContext, refers to the page’s environment
�config – javax.servlet.ServletConfig, refers to the servlet’s configuration
 
Bimal Patel
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think it is the instance of the JSP page's servlet, processing the current request. Something like "this" keyword.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Breakdown of the implicit objects

In the real world, you probably won't ever use page and rarely (if ever) use config.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic