Hi,

The consensus seem to me to be "It's ok to use
scriplets for this". Indeed I'm using similar code as
below; I was thinking maybe that's a "pure" tag
solution.

Thanks everyone!

--- Greg Reddin <[EMAIL PROTECTED]> wrote:
> We've had success doing this with JSP.  The
> following code snippet may help.
> 
> <%
>   String DARK_COLOR = "DarkColor";
>   String LIGHT_COLOR = "LightColor";
>   String currentColor = DARK_COLOR;
>   int i = 0;
> %>
>     <struts:enumerate id="searchRow" 
>         name="searchForm" property="SearchResults"> 
> 
> <%
>   if ( i % 2 == 0)
>   {
>      currentColor = DARK_COLOR;
>    }
>    else
>    {
>       currentColor = LIGHT_COLOR;
>    }
>    i++;
> %>
>    <TR ALIGN="center" class="<%=currentColor %>">
> 
> Thanks,
> Greg
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Reply via email to