• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Little Information required about page and pagecontext

 
Adam Zedan
Ranch Hand
Posts: 124
C++ Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am familiar with request,session and application(similar to context) scope in a jsp but i am not familiar with the page scope could anyone please give me some idea about page and pagexontext ?? what are they used for ??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
page is a buitlin scripting variable that is no longer exposed by the EL. it wasn;t even used much in scriptlets.

pageContext (not pagecontext -- case counts!) is a scope that is limited to the current page. Unlike request scope, it isn;t shared across forwards or includes.
 
Adam Zedan
Ranch Hand
Posts: 124
C++ Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when would you use pageContext.setAttribute() ?? and why would you want to use it ??
what is the difference between page and pagecontext
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adam Zedan wrote:when would you use pageContext.setAttribute() ??
Perhaps in a custom tag.

what is the difference between page and pagecontext

Already explained.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic