• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL expressions  RSS feed

 
Anitha Srinivasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can not we use ${pageContext.pageScope} ?
Thanks,
Anitha
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Because there is no property(May be reference objects) like pageScope for pageContext.
pageContext is the real actual reference to th pageContext object.If you check the documentation for class PageContext, you can find that there is no getter method like getPageScope().

check the documentation, you can find lots of getter methods is there other than getPageScope().

you can use others, there is one getter for that PageContext class like :-

Object getPage()

so you can use ...

${pageContext.page}
 
Anitha Srinivasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sreeraj.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!