Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Page Directives  RSS feed

 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would I be right in supposing that the session page directive is legacy now? i.e.



If I leave the directive out altogether, EL is still able to access session scoped variables:

 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session attribute is by default set to true.
 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah - dumb! Thank you - I didn't think to try that! I just tried again, explicitly setting session to false, and it now raises an exception... which is of course consistent.

The good news is, I probably won't forget that now!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!