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 <[EMAIL PROTECTED]>:

> 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:[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