On Wed, 15 Dec 2004 08:31:03 -0800, Karr, David <[EMAIL PROTECTED]> wrote:
> First of all, note that you could use "c:forEach" instead of
> "logic:iterate".  You should be able to do it with both, but there's no
> sensible reason to use both kinds of iteration constructs.

Well, I came to the logic-el "solution" after trying the c:forEach. I
thought perhaps the Struts variant could do more then the c:forEach
variant.

> The critical problem is likely that the "collection" attribute is an RT
> expression that evaluates to a collection.  Your value is a string, not
> a collection.

Well yes, but I also tried things like: 
<logic-el:iterate id="question" collection="${questions(questionnaire.id)}">
<logic-el:iterate id="question" collection="${questions.get(questionnaire.id)}">

But that also resulted in errors. That's why I asked if there was a
way to do what I'm trying to do with either JSTL or Struts (I've
created a scriptlet now that does it, but I'm still wondering if it's
possible with either JSTL or Struts)

@Paul

I'm not trying to iterate through the hashmap itself. I'm trying to
iterate through a vector IN the hashmap based on a key that I get from
an iteration higher.

Regards,
Wessel van Norel
-- 
Spread Firefox: http://www.spreadfirefox.com/?q=user/register&r=15629

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

Reply via email to