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 comparision operators

 
Swathi Sri
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am learning EL functions. When I did exercise in HFSJ book, 393 page, I got following doubt.

How ${num > 3} gives false?

I was expecting error because num is not preceded by requestScope. Can anybody please explain me how it get executes?

Thanks,
Swathi.
 
Nileesha Bojjawar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Swathi,
The variable is first searched in the pageScope all the way through to the applicatoin scope in the order page- request- session-application.
the first variable / attribute fouund with that name is used.
Hope this helps
Nileesha
 
Swathi Sri
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Nileesha..

It helps me understand the concept.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic