!

My god.  Sometimes it really helps having another pair of eyes.

Thank you.
----- Original Message ----- 
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 4:04 PM
Subject: Re: [OT] JSTL question


> Closing tag too early?
>
> <c:forEach items="${selectBox[prop.key]}" varStatus="loop"/>
>
> Quoting [EMAIL PROTECTED]:
>
> > I am not sure what that will accomplish since my problem is that I am
not
> > getting any iteration at all.
> >
> > when i try to do this:
> > <c:forEach items="${selectBox[prop.key]}" varStatus="loop"/>
> >                             aaaaaaaaaa
> >                            <c:out value="${loop.index}"/>
> >                            <c:out value="${loop.COUNT}"/>
> >                            <c:out
> > value="${selectBox[prop.key][loop.index].key}"/>
> > </c:forEach>
> >
> > on a list that I know has 15 items, all i get as output is
> >
> > aaaaaaaaaa
> >
> > So, what is wrong there?
> >
> > ----- Original Message ----- 
> > From: "Karr, David" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, September 11, 2003 3:59 PM
> > Subject: RE: [OT] JSTL question
> >
> >
> > > Actually, in this case, "loop.index" is probably more appropriate.
They
> > > are similar, but different.
> > >
> > > > -----Original Message-----
> > > > From: Erez Efrati [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, September 11, 2003 1:54 PM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: RE: [OT] JSTL question
> > > >
> > > >
> > > > You need to put loop.COUNT :
> > > >
> > > >      <c:out value="${selectBox[prop.key][loop.count].key}"/>
> > > >
> > > > Erez
> > > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, September 11, 2003 9:50 PM
> > > > To: Struts Users Mailing List
> > > > Subject: [OT] JSTL question
> > > >
> > > > Ok, i have a map named selectBox that contains a number of
ArrayLists
> > > > keyed by strings.
> > > >
> > > > When I try to iterate over it, nothing happens!
> > > >
> > > > <c:out value="${selectBox[prop.key]}"/>
> > > > Shows something of the order [ java.com.blah.bean,
java.com.blah.bean,
> > > > java.com.blah.bean]
> > > >
> > > > <c:out value="${selectBox[prop.key][1]}"/>
> > > > shows something like: java.com.blah.bean
> > > >
> > > > <c:out value="${selectBox[prop.key][1].key}"/>
> > > > shows the value stored in the bean under the property key.
> > > >
> > > >
> > > > However when i try to do this:
> > > >
> > > > <c:forEach items="${selectBox[prop.key]}" varStatus="loop"/>
> > > >
> > > >      <c:out value="${loop}"/>
> > > >      <c:out value="${selectBox[prop.key][loop].key}"/>
> > > > </c:forEach>
> > > >
> > > > nothing shows.
> > > >
> > > > I am really confused.  What am I doing wrong?
> > > >
> > > > Thanks.
> > > >
> > > > Denis
> > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech       <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to