struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamholz, Keith (corp-staff) USX" <kkamh...@moog.com>
Subject RE: Logic Iterate not finding my bean
Date Tue, 02 Jul 2002 12:44:31 GMT
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: wbchmura@Ensign-BickfordInd.com
[mailto:wbchmura@Ensign-BickfordInd.com]
Sent: Monday, July 01, 2002 2:35 PM
To: struts-user@jakarta.apache.org
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:Chris_Treglio@berlex.com]
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.





wbchmura@Ensign-BickfordInd.com
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To:     struts-user@jakarta.apache.org
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>






--
To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: 
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message