Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iterate

 
Kaiser Lautern
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, folks,

Can anybody explain why this iterate tag is not iterating?
It is showing only the first string of the array.

This is the action code:


and this is the JSP:



Thank you.

Kaiser
 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,bcs you use this:
request.setAttribute("dao",myDAO);

So you passing the list to JSP using request, maybe you can try this:
addin scope="request" to your logic:iterate tag, and change property to type, like this:

<logic:iterate id="mydao" name="dao" scope="request" type="data"/>

same if your use session to pass the list, then set scope="session"

Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic