• Post Reply Bookmark Topic Watch Topic
  • New Topic

logic:iterate problem

 
Aljen vonHell
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to iterate a String[] object in simple JSP but i have a problem:
javax.servlet.jsp.JspException: Cannot find bean element in any scope

Jsp code:
<logic:iterate id="element" name="zoznamStlp">
<bean:write name="element"/>
</logic:iterate>

zoznamStlp is present in request.
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below is a sample from some code I wrote that works. Hope it helps.



The only other thing I can think of is to make sure that your String array is not null and does not contain any nulls.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!