I have found with struts version 1.0 that if you have nested collections on a form bean that struts will correctly reslove the getter methods but is unable to resolve the setter methods. I have been forced to use scriptlets inside the stuts tags to overcome this problem. I'm hoping the newest version, 1.01 I think, has fixed this.
-----Original Message----- From: Geoffrey Mroz [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 8:31 AM To: [EMAIL PROTECTED] Subject: Re: quick question: nested Iterate process. 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>