Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL Comparison operator  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have ${a < b} in a jsp and there are no attribute with name a and b in any scope.

this results in false.


Why it results in false and what actually this comparison means.

Is it like ${ false < false}
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because, by definition null is not less than null. (null never positively compares to anything, not even itself.)
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bibeault
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!