Using <s:iterator> to populate a dynamic arraylist over multiple columns
问题 I am trying to populate an ArrayList over multiple table columns, this was originally done using Scriptlets on our old page but I know that the practice is frowned upon now. And I am having trouble translating it over using struts tags. I want the table to end up like this, Checkbox 1 Name 1 Checkbox 2 Name 2 Checkbox 3 Name 3 Checkbox 4 Name 4 etc.... This is the original scriptlet code: <% for (int j=0; j < getDocumentList().length; j++) { setPacket(j); setStringIndex(Integer.toString(j));