It's certainly not a bad idea to grab a JSTL book, but the spec itself is quite readable and full of good information:
http://jcp.org/aboutJava/communityprocess/final/jsr052/ The only JSTL book I've even partially read is "JSTL in Action" by Shawn Bayern and I have no reservations recommending it. There are also plenty of web resources available: http://www.javaworld.com/javaworld/jw-02-2003/jw-0228-jstl.html http://www.onjava.com/pub/a/onjava/2002/08/14/jstl1.html http://www.onjava.com/pub/a/onjava/2002/09/11/jstl2.html http://www.onjava.com/pub/a/onjava/2002/03/13/jsp.html http://www.onjava.com/pub/a/pub/a/onjava/2002/05/08/jstl.html http://java.sun.com/developer/technicalArticles/javaserverpages/faster/ http://java.sun.com/developer/technicalArticles/Intl/MultilingualJSP/ etc. Quoting Erik Weber <[EMAIL PROTECTED]>: > Kris, once again you have helped me get my work done. bean:size did the > trick. I was looking over and over again for a JSTL tag or expression to > do this; I probably never would have thought of bean:size. > > To complete the post for any other reader who is as suicidal as I am > after trying to figure this out: > > <c:forEach items="myMap" var="currentEntry"><!-- where Map has String > keys and array or List values --> > <bean-el:size collection="${currentEntry.value}" id="size"/><!-- page > scope variable "size" (of type java.lang.Integer) will now contain the > size of the array or list associated with the current Map key --> > . . . > <c:when test="${size > 5}"><!-- how to test how big the current array > or List is --> > . . . > <c:forEach items="currentEntry.value" var="currentItemInArrayOrList" > varStatus="iteratorStatus"><!--- how to iterate the current array or > List --> > . . . > <c:out value="${currentItemInArrayOrList.someProperty}"/><!-- how to > print some property of the current item in the current array or List --> > . . . > <c:when test="${iteratorStatus.index % 2 == 0}"><!-- how to tell if > you are on an even-numbered row in your iteration --> > > and so on . . . > > > Thank you, > Erik > > P.S. I would love to know how you learned all this (I suppose I must buy > a JSTL book). > > Erik -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]