Works fine for me using Tomcat 3.x and 4.0 standalone. Maybe you could look at the generated jsp code to see what scope the variable is in...
Rob ----- Original Message ----- From: "Henrick Chua" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, November 23, 2001 9:56 AM Subject: RE: displaying values in columns of 5 > i understand that the indexId="i" is the counter... and it increments > everytime it iterates... > but the 'i' in > <%=(((i.intValue()%3)==0) && ((i.intValue() > 0)))?"<BR/>":""%> > > is said to be undefined...? > > is this a bug of IBM websphere running apache tomcat? > > thanx. > henrik > > -----Original Message----- > From: Robert Parker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 22, 2001 2:57 PM > To: Struts Users Mailing List > Subject: Re: displaying values in columns of 5 > > > Look at the iterate tag (see below) - the last attribute (indexId) is the > iterator's counter variable. > > regards > > Rob > ----- Original Message ----- > From: "Henrick Chua" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Friday, November 23, 2001 9:33 AM > Subject: RE: displaying values in columns of 5 > > > > hi! > > > > just want to ask... how did you declare the variable i? > > coz i was not able to compile it. due to undefined variable i. > > > > thanx > > henrik > > -----Original Message----- > > From: Robert Parker [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, November 21, 2001 4:38 PM > > To: Struts Users Mailing List > > Subject: Re: displaying values in columns of 5 > > > > > > Here's what I did, I resorted to some script inside an iterate tag. You > can > > access the iterator's internal counter as an Integer... (Note in this case > > I'm grouping by 3's) > > > > <logic:iterate id="product" name="element" property="value" > indexId="i"> > > ... > > <%=(((i.intValue()%3)==0) && ((i.intValue() > 0)))?"<BR/>":""%> > > ... > > </logic:iterate> > > > > regards > > > > Rob > > ----- Original Message ----- > > From: "Henrick Chua" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]> > > Sent: Thursday, November 22, 2001 11:19 AM > > Subject: displaying values in columns of 5 > > > > > > > Hi folks! > > > > > > if i have a collection of values. let's say 23 items. how can i > display > > it > > > such a way that there are only 5 item in each row. should i use 2 > > iterates > > > for it or something? > > > > > > thanx in advance > > > h > > > > > > > > > > > > -- > > > 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]>