This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL Empty operator

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

What is the use of EL empty operator?
 
Sergio Tridente
Ranch Hand
Posts: 329
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Accordingly to section JSP.2.3.7 of the spec.

The empty operator is a prefix operator that can be used to determine if a value is null or empty.

To evaluate empty A
� If A is null, return true,
� Otherwise, if A is the empty string, then return true.
� Otherwise, if A is an empty array, then return true.
� Otherwise, if A is an empty Map, return true,
� Otherwise, if A is an empty Collection, return true,
� Otherwise return false.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sergio!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic