Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display arraylist within arraylist in jsp

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)
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic