RE: Logic Iterate not finding my bean
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]
RE: Logic Iterate not finding my bean
This was one of the many iterations I tried logic:iterate id=bean name=rowset type=org.apache.commons.beanutils.BasicDynaBean Next element is bean:write name=bean property=refnum/ /logic:iterate -Original Message- From: kkamholz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 8:45 AM To: struts-user Subject: RE: Logic Iterate not finding my bean 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Logic Iterate not finding my bean
How is the bean that is being used in the iteration structured? It may be helpful if you send some code from your bean class. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 9:21 AM To: [EMAIL PROTECTED] Subject: RE: Logic Iterate not finding my bean This was one of the many iterations I tried logic:iterate id=bean name=rowset type=org.apache.commons.beanutils.BasicDynaBean Next element is bean:write name=bean property=refnum/ /logic:iterate -Original Message- From: kkamholz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 8:45 AM To: struts-user Subject: RE: Logic Iterate not finding my bean 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] -- 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]
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]
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]
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]