My brain has stopped working.  I need an alternative to bean:define.

What I'm TRYING to do is iterate through a list, displaying a certain bit of
code only when its different than the last iteration (grouping).

Here's a snip:

        <bean:define id="lastClientName" value="" />
       
        <logic:iterate id="widget" name="widgets">
        
        <logic:notEqual name="widget" property="clientName"
value="<%=lastClientName%>">
        <tr>
          <td colspan=all>
            client: <bean:write name="widget" property="clientName" />
          </td>
        </tr>
        <bean:define id="lastClientName" name="widget" property="clientName"
/>
        </logic:notEqual>

End of snip.

This won't compile since bean "lastClientName" has already been defined.  I
can't change my version of Struts.

What would be some clean syntax to use instead?

Thanks so much in advance!

J


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

Reply via email to