Eric,
I used the iterator tag from taglib lesson 3 and recompiled it so that it used
setAttribute(name,object) instead of setAttribute(name,object,sope), so that it would behave in the same manor as your Tag.
This worked fine for me.
 
The fastest solution to your problem is probably to recompile your Tag.
If the problem persists, try writing some output at the time you setAttribute(..), so that you can see that it is executed.
If the problem still persists, post your Tag so that we can have a go at it.
 
You might want to use a TEI class to get rid of the <jsp:useBean> part while at it.
 
WR
 
Magnus Rydin
WebTeknik AB
[EMAIL PROTECTED]
+46 8 545 87 307
-----Original Message-----
From: Eric Richardson [mailto:[EMAIL PROTECTED]]
Sent: den 30 maj 2000 20:53
To: Orion-Interest
Subject: Tag lib fails with newest build

Hi,
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) { %>
    &gt; <%=hierarchy%></a>
  <% } %>
  <% i++; %>
</ts:iterate>
</h1>

Reply via email to