Hi,

I made a typo in my request (closing the bean tag), but thas is not the main
problem.

What I want to do is:
1. iterate through some orderlines
2. if 'compname' of this orderline is not equal to 'compname' of the
previous orderline, write the compname, else do not.

How do I realise this? Do I have to declare a variable?

<logic:iterate id="element" name="orderlinebean" type="com.test.Orderline">
<logic:notEqual name="element" property="compname" value="-->if the compname
is the same as the previous line, don't write, else write the compname">
  <tr>
     <td width="23%">&nbsp;</td>
     <td width="18%"><bean:write name="element" property="compname"/></td>
     <td width="59%"><bean:write name="element" property="number"/></td>
  </tr>
</logic:notEqual>
</logic:iterate>


Peter Cnops
Project Management - MediaTower
Digital Photography - PrePress - Digital Printing - Internet Services
Veldkant 29, B-2550 Kontich
Tel. 03 450 81 00 - Fax 03 450 81 09
http://www.mediatower.be



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

Reply via email to