Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between page and pagecontext

 
shekar march chandra
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ppl,

can one explain the difference between the page and pagecontext.
and where we use it clearly.

Thanks,
Chandra
 
chsanthosh kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Can u take look at it into this..
u will find more.
Pagecontext and page
 
shekar march chandra
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi santosh,

I checked the java link, but i couldn't understand whats exact difference and why it is.

I know that an object bound to page scope, will be available only to that particular page.

what about pagecontext object?

Thanks,
chandra
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you are talking about the page and pageContext implicit objects available to a JSP.

The "page" is representative of your JSP (or rather the Servlet that it has become) that is serving the request, a synonym for "this". You wouldn't perhaps use this much. "pageContext" provides several convenience methods as can be read from the APi link provided above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic