You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohan Radhakrishnan <Mo...@hclcomnet.co.in> on 2002/11/29 14:09:47 UTC

index of logic-iterate

Hi,

The following code is JSTL. How do I do this with struts logic tags ? No
struts-el.

	      <c:when test="<%= value % 2 == 0 %>">

I am looping with logic-iterate. 'value' in the above code should be the
'index' of the looped over arraylist.

I am just checking for alternate rows and changing the color.

It could be something like       

			<logic:iterate id="item" name="table1"
indexId="index" offset="1">
				<logic:equal value="<bean:write
name="index"/>"> 
			</logic:iterate>

Is this possible ?
Thanks,
Mohan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>