File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Accessing array of array list in Jsp using ITERATOR tag of Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Accessing array of array list in Jsp using ITERATOR tag of Struts2" Watch "Accessing array of array list in Jsp using ITERATOR tag of Struts2" New topic
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
 
Threads others viewed
Retrieving List from DB and setting to JSP in struts 2
Struts 2: Iterator/Valuestack question.
Struts2 - <s:iterator> in two-Dimensional Array.
Collecting Values from remove div
Using checkbox & textfield together
IntelliJ Java IDE