Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!