varStatus gives you an instance of javax.servlet.jsp.jstl.core.LoopTagStatus. It
has a property called "index" that might be of interest...

Quoting [EMAIL PROTECTED]:

> Ok, i have a map named selectBox that contains a number of ArrayLists keyed
> by strings.
> 
> When I try to iterate over it, nothing happens!
> 
> <c:out value="${selectBox[prop.key]}"/>  
> Shows something of the order [ java.com.blah.bean, java.com.blah.bean,
> java.com.blah.bean]
> 
> <c:out value="${selectBox[prop.key][1]}"/>
> shows something like: java.com.blah.bean
> 
> <c:out value="${selectBox[prop.key][1].key}"/>
> shows the value stored in the bean under the property key.
> 
> 
> However when i try to do this:
> 
> <c:forEach items="${selectBox[prop.key]}" varStatus="loop"/>
>                             
>      <c:out value="${loop}"/>
>      <c:out value="${selectBox[prop.key][loop].key}"/>
> </c:forEach>
> 
> nothing shows.
> 
> I am really confused.  What am I doing wrong?
> 
> Thanks.
> 
> Denis


-- 
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]

Reply via email to