ah chong

Greenhorn
+ Follow
since May 29, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ah chong

Hi,

My question is on how to create an iteration within an iteration.

I have written the looping for following in Action class
...
for (int i=0;i<[first iteration size];i++){
request.setAttribute("sendToJsp"+i,arrayListObj);
}
...


In JSP page within an iteration, I wrote

...
<logic:iterate id="myIter" name="sendToJsp<%=index%>">
<bean:write name="myIter"/>
</logic:iterate>

which the index is belong to the first iteration.

It looks like can't find the bean name "sendToJsp<%=index%>" in any scope. By right my desired name is sendToJsp0,sendToJsp1,sendToJsp2 etc.. (which is the attribute from request)
12 years ago