tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <>
Subject Re: Problem with "empty" key word on a collection.
Date Thu, 13 Feb 2003 17:25:22 GMT
On Thu, 13 Feb 2003, Leon Doud wrote:

> Well that would be fine if it was possible to call the isEmpty()
> method on a collection.  But since empty is a key word the parser has
> a problem with "collection.empty".

You could use ${collection["empty"]}.

> Why not implement the empty keyword on all collections?  The method
> isEmpty is available in the Collection interface.  Was there some sort
> of argument against that when the spec was defined?

I believe so; I don't remember the details of the debate, but I think the
justification is that the EL doesn't deal with Collections in general in
any other situation.

Shawn Bayern
"JSTL in Action"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message