RE: [JSTL] How can I use c:if to check the size of a list?

2003-02-12 Thread Brandon Goodin
Here are a couple great reference links: http://www.manning.com/bayern/appendixA.pdf http://rs1.vtu.lt:8080/jstl-examples/index.html Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original

RE: [JSTL] How can I use c:if to check the size of a list?

2003-02-12 Thread Jerome Jacobsen
If you are iterating with c:forEach then use the iteration status which has a count property. See this example: c:forEach var=customer items=${customers} varStatus=status tr tdc:out value=${status.index}//td tdc:out value=${status.count}//td tdc:out