Roy, if you are using JSP 2.0 (e.g. with Tomcat 5) and JSTL 1.1 you can
do the following:
<[EMAIL PROTECTED] isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
Map size is ${fn:length(TableRows)}
Roy Benjamin wrote:
Very interesting, so wrapping would
Right, because the wrapper would be a JavaBean, not a Map. The gory details
behind the "." operator can be found in section A.3.4 Operators "[]" and "." of
the JSTL 1.0 Spec.
Quoting Roy Benjamin <[EMAIL PROTECTED]>:
> Very interesting, so wrapping would work, but you can't
> just expose a Bean p
Very interesting, so wrapping would work, but you can't
just expose a Bean property.
I've switched to c-rt for now,
Thanks!
On Fri, 2004-03-26 at 10:35, Kris Schneider wrote:
> Maps are treated differently than regular JavaBeans so that you can't access
> bean properties. For example, every obj
Maps are treated differently than regular JavaBeans so that you can't access
bean properties. For example, every object has a bean property called "class",
but you won't get any output if you try ${map.class}. It's even more fun to try
and get at a map's "empty" property ;-). If all you're concerne
I am displaying the values in a TreeMap using forEach tag.
However, I only want to do this if the map is not empty.
I also need to display the count of entries in the map at
the top of the page.
In TreeMap, size/size() is not a Bean Property (no?) so I tried
in-line subclassing to expose the prope