If I read you right, then the following should work (I just posted this to another 
question)

html>
<body>
Use of the Struts iterate tag with nested ArrayLists representing rows/cols:<p>
<%@ page import="java.util.ArrayList" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%
ArrayList rows = new ArrayList(); 
ArrayList rowOne = new ArrayList();
rowOne.add("bob");
rowOne.add("jones");
rowOne.add("[EMAIL PROTECTED]");
ArrayList rowTwo = new ArrayList();
rowTwo.add("ted");
rowTwo.add("Walters");
rowTwo.add("[EMAIL PROTECTED]");
ArrayList rowThree = new ArrayList();
rowThree.add("Mary");
rowThree.add("Smith");
rowThree.add("[EMAIL PROTECTED]");

rows.add(rowOne);
rows.add(rowTwo);
rows.add(rowThree);

request.setAttribute("DATASET",rows);
%>
<table border="1">
<logic:iterate id="eachRow" name="DATASET" scope="request">
<tr>
<logic:iterate id="eachCol" name="eachRow">
<td>
<bean:write name="eachCol" />
</td>
</logic:iterate>
</tr>
</logic:iterate>
</table>
</body>
</html>


Hope that helps.

-- Geoff
--
Sent via jApache.org

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

Reply via email to