%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
Test struts-logic Iterate Tag
<%
{
java.util.ArrayList list = new java.util.ArrayList();
list.add("First");
list.add("Second");
list.add("Third");
list.add("Fourth");
list.add("Fifth");
pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE);
int intArray[] = new int[]
{ 0, 10, 20, 30, 40 };
pageContext.setAttribute("intArray", intArray, PageContext.PAGE_SCOPE);
}
%>
Test struts-logic Iterate Tag
Test 1 - Iterate Over A String Array [0..4]
-
[
]
Test 2 - Iterate Over A String Array [0..2]
-
[
]
Test 3 - Iterate Over A String Array [3..4]
-
[
]
Test 4 - Iterate Over A String Array [1..3]
-
[
]
Test 5 - Iterate Over an Array List
-
[
]
Test 6 - Iterate Over an Array List [0..2]
-
[
]
Test 7 - Iterate Over an Array List [2..4]
-
[
]
Test 8 - Iterate Over an int array
-
[
]
Test 9 - Iterate Over an int array [0..2]
-
[
]
Test 10 - Iterate Over an int array [2..4]
-
[
]