You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Eric Chow <er...@gmail.com> on 2006/06/07 09:39:13 UTC

c:out array problem

Hello,

If I have two arrays with same length, how can I display them in c:forEach ?

Best regards,
Eric

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


Re: c:out array problem

Posted by Kris Schneider <kr...@dotech.com>.
Couple of ways to skin it, one is:

<c:forEach var="arr1item" items="${arr1}" varStatus="status">
   <c:set var="arr2item" value="${arr2[status.index]}"/>
   ...
</c:forEach>

Eric Chow wrote:
> Hello,
> 
> If I have two arrays with same length, how can I display them in 
> c:forEach ?
> 
> Best regards,
> Eric

-- 
Kris Schneider <ma...@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