I don't know if this will solve your problem, but you're making a common
mistake.  In the <bean:write> tag, the name attribute should be the same as
the id attribute in the <logic:iterate> tag.  So use name="refnum" in your
<bean:write>.  Hope this helps.

~ Keith


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Logic Iterate not finding my bean



You mean this one:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Nope, got that in there...


-----Original Message-----
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean




I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not 
defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.





[EMAIL PROTECTED]
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To:     [EMAIL PROTECTED]
cc:
Subject:        Logic Iterate not finding my bean


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'

These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:

-----------
System.out.println("Name is: " + ((BasicDynaBean)
results.get(0)).get("name"));
session.setAttribute("rowset",results);
-----------

In my jsp I have tried a kabillion combinations for the logic iteratate
and all yield the error above:

<logic:iterate id="refnum" name="rowset">
Next element is <bean:write name="rowset" property="refnum"/>
</logic:iterate>

Here is the simplest I tried...  I've added type, etc.. All to no avail





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to