tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: One loop for two arrays
Date Tue, 22 Jul 2003 16:50:39 GMT
The type of the "varStatus" attribute is
javax.servlet.jsp.jstl.core.LoopTagStatus. This interface exports a number of
properties, including "index" and "count". I think you need:

<c:set var="surname" value="${list2[i.index]}"/>

Quoting Felipe Leme <t5jtjj502@sneakemail.com>:

> On Tuesday 22 July 2003 12:44 pm, Vincent Peytavin wrote: 
> 
> > <c:forEach var="nom" items="${liste1}" varStatus="i">
> >    // Something which puts in 'surname' the value of 'list2[i]'
> >
> > </c:forEach>
> 
> 
> I think the "something" could be something like::
> 
> <c:set var="surname" value="${list2[i]}"/>
> 
> Is that what you want?
> 
> Felipe


-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message