Scott Walter wrote:
> Although I don't like to place Java code in my JSP
> pages, this is how I accomplished this:
>
> <strutlogic:iterate id="row" name="list">
> <% if(index%2==0) { %>
> <TR class="rowoff">
> <% } else { %>
> <TR class="rowon">
> <% } %>
>
> index++;
>
> </strutlogic:iterate>
>
> --- Anthony Martin <[EMAIL PROTECTED]> wrote:
> > I'm sure I'll get to this in my project. Why not
> > make it a read property of
> > the bean?
> >
> > protected String rowColor = "#FFFFFF" ;
> > public String getRowColor ( ) { return
> > this.rowColor ; }
> > public void setRowColor ( String value ) {
> > this.rowColor = value ; }
> >
> > Then all you need is a way to change that value at
> > the top of the
> > <logic:iterate> block by detecting the current state
> > with a couple
> > <logic:equal> tag.
> >
Using two <logic:equal> tags is a good solution, but wouldn't it be nice
to have a kind of "if .. then .. else" feature ? Like :
<logic:equal ...>
...
<logic:else >
...
</logic:equal>
Any plan to implement this ?
Bernard.