File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes logic:iterate problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:iterate problem" Watch "logic:iterate problem" New topic
Author

logic:iterate problem

Aljen vonHell
Greenhorn

Joined: Jul 23, 2004
Posts: 5
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

Joined: Sep 25, 2003
Posts: 327
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.


Anthony W.<br />MCP, SCJP 1.4, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logic:iterate problem