You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Meka Struts <Me...@hotmail.com> on 2003/08/15 00:02:22 UTC
Iterating on ArrayList present in a View
Hi,
* I have an ArrayList which contains objects of type Strings.
* This ArrayList is being set in the view
Can somebody tell me how can i iterate the ArrayList present in the View?
* I have implemented iterate tag on ArrayList containing some BussinessObjects (BO's), and the ArrayList was set into the session using
session.setAttribute("ArrayList", alObj);
Regards,
MekaToka
Re: Iterating on ArrayList present in a View
Posted by David Graham <gr...@yahoo.com>.
--- Meka Struts <Me...@hotmail.com> wrote:
> Hi,
>
> * I have an ArrayList which contains objects of type Strings.
> * This ArrayList is being set in the view
>
> Can somebody tell me how can i iterate the ArrayList present in the
> View?
Using the JSTL:
<c:forEach var="myVar" items="${ArrayList}">
<c:out value="${myVar}"/>
</c:forEach>
David
>
> * I have implemented iterate tag on ArrayList containing some
> BussinessObjects (BO's), and the ArrayList was set into the session
> using
>
> session.setAttribute("ArrayList", alObj);
>
> Regards,
>
> MekaToka
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org