Bug 8077

Summary: add "empty" EL operator
Product: Taglibs Reporter: Nathan Abramson <arista>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Nathan Abramson 2002-04-14 23:11:13 UTC
Add "empty A" operator with same precedence as "not" and unary minus.
empty A evaluates to true if:

  A is null
  A is a zero-length String
  A is a zero-length array
  A is a List and ((List) A).isEmpty()
  A is a Map and ((Map) A).isEmpty()

otherwise empty A evaluates to false
Comment 1 Nathan Abramson 2002-04-14 23:35:20 UTC
The empty EL operator has been added as EmptyOperator.java