We previously used an iterate tag lib but had problems with the three argument setAttribute method so we hard coded to pageContext.
Code in tag library:
pageContext.setAttribute(name, iterator.next()); //page scope default
This worked great for 1.0rc1
With (Orion/1.0 (Internal build 3) initialized) we get the following.
java.lang.InstantiationException: Could not find the bean named 'hierarchy'
in the page scope
at __jspPage3_stores_db_jsp._jspService(__jspPage3_stores_db_jsp.java:156)
at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.tc(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.df.o4(JAX)
at com.evermind.server.http.df.forward(JAX)
at com.evermind.server.http.dm.pa(JAX)
at com.evermind.server.http.dm.o9(JAX)
at com.evermind.util.e.run(JAX)
Code in JSP page:
<h1>
<% int i=0; %>
<ts:iterate name="hierarchy" collection="<%= usercatalog.getCatalogPath()
%>">
<jsp:useBean id="hierarchy" scope="page" type="java.lang.String"/>
<% if (i == 0) { %>
<a href="catalogcontrol_db.jsp"><%=hierarchy%></a>
<% }else if (i == 1) { %>
> <%=hierarchy%></a>
<% } %>
<% i++; %>
</ts:iterate>
</h1>
