| Author |
Accessing array of array list in Jsp using ITERATOR tag of Struts2
|
Rajaprabhu Aravindasamy
Greenhorn
Joined: Dec 26, 2011
Posts: 25
|
|
Hello guys..!
I having a doubt regarding accessing an array of arraylist in jsp using iterator tag.
In my action class i used the following codes..,
ArrayList[] arr= new ArrayList[10];
for(int i=0;i<10;i++)
{
arr[i]=new ArrayList<bean>();
}
.
.
.
while(some conditions)
{
arr[i].add(new bean(some values));
i++;
}
My question is, how can i access the values of arr[0],arr[1]...a[10] in JSP page using iterator.
<s:iterator value=???> <s:property value=beanvalues /> </s:iterator>
In the place of question mark what i need to replace to access the values of arr[0]...a[10] present in arr..? please give me a solution soon...!
|
 |
 |
|
|
subject: Accessing array of array list in Jsp using ITERATOR tag of Struts2
|
|
|