logic:iterate doesn't iterate as expected
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Yannick_Sihalathavong
Posted On:   Thursday, March 17, 2005 02:43 AM

Hello, I am in troubles because in my JSP page I want to iterate on a collection but when I use the logic:iterate tag, it doesn't iterate as expected, but I'm sur the collection is right. Here is the code : The collection has a size of 2 elements (I logged it in the getSecretariesList() method in the Java class). But my result is only one iteration. I got only one secretary instead of 2. When I try an other way, I get the 2 secretaries as expected : Whith this code, I get my entire collection. I don't understand why. Does someone got an idea ?   More>>

Hello,

I am in troubles because in my JSP page I want to iterate on a collection but when I use the logic:iterate tag, it doesn't iterate as expected, but I'm sur the collection is right.

Here is the code :










The collection has a size of 2 elements (I logged it in the getSecretariesList() method in the Java class).
But my result is only one iteration. I got only one secretary instead of 2.



When I try an other way, I get the 2 secretaries as expected :













Whith this code, I get my entire collection.



I don't understand why. Does someone got an idea ?



Thanks a lot.

Yannick

   <<Less

Re: logic:iterate doesn't iterate as expected

Posted By:   Yannick_Sihalathavong  
Posted On:   Thursday, March 17, 2005 05:59 AM

Sorry for this ... I found the problem, and I apologize for this stupid error of syntax which was invisible to me.
About | Sitemap | Contact