• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to display arraylist within arraylist in jsp  RSS feed

ah chong
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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++){

In JSP page within an iteration, I wrote

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

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)
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!