Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Kris Schneider
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

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
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

Re: Still need help with layered Map iteration in JSP

2004-08-16 Thread Kris Schneider
I guess the first thing to make sure you understand is that, when iterating over a Map, the object exposed by JSTL via the var attribute is of type Map.Entry. It's equivalent to doing a map.entrySet().iterator(). As for getting the size of an array, Collection, or Map, use the tag. Quoting Erik W

Still need help with layered Map iteration in JSP

2004-08-16 Thread Erik Weber
OK, I'll take ANY WAY TO DO THIS AT ALL. I have a c:forEach over a Map. The value for each key in the Map can be an array of objects, or I can make it a List. I don't care at this point. All I want to do is get the length of this array or List, before I start iterating over *it*, during the curr