Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL Scope Doubt

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When in EL i say :
${person}
Will the container searches for a person attribtue in page scope ---then--> Request Scope ---then--> Session Scope ---then-->
Application Scope. Right ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's right. The container searches all scopes you have mentioned and returns the object if found.
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is true then,

request.setAttribute("1","one");
and In JSP
${1}

Why it doesn't recogonize the attribute 1 (of request scope) and print one ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You already asked this here. Please continue the discussion there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic