This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scope related question

 
Deepinder S Narang
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

It is mentioned that when the attributes are not found in pageScope then they are looked for in request and then session and then application.

But what if i have mentioned the scope=session and it doesnt get the attribute there ......... will it start searching from page or will search in only applicationscope as only that thing comes after session scope in the hierarchy .... ?
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure about this, but i think if you are going to mislead the container, it will not like it
So, if you say that its in the session scope, it better be there !!!
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you explicitly tell in which scope to look for, the container won't look anywhere else.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic