I would use the JSTL core:out tag, but I would also probably use the
core:forEach tag instead of the logic:iterate:

<c:forEach var="tran" items="${trans.transactions}">
        <tr>
                <td><c:out value="${tran.acctno}"/></td>
                <td><c:out value="${tran.testcode}"/></td>
                <td><c:out value="${tran.srcfac"/></td>
        </tr>
</c:forEach>

I know you wanted to use the struts taglib, but this is how I would probably
do it.....
you could also use the logic:iterate tag with the core:out tag if you have a
compelling need for the iterate tag....

-----Original Message-----
From: Vinay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 4:28 PM
To: Struts Users Mailing List
Subject: Struts-el


Has anybody used Struts-EL (expression language) TLD
How do I iterate over a collection using


<logic:iterate id="tran" name="trans" property="transactions"
scope="request">
         <tr>
     <td><bean:write name="trans" property="acctno"/></td>
            <td><bean:write name="trans" property="testcode"/></td>
            <td><bean:write name="trans" property="srcfac"/></td>


         </tr>
 </logic:iterate>

There is no bean:write in struts-el.tld , what is the equivalent of the
above using struts-taglib-el.tld

Thanks
regards

Vinay






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to