Hi all

Bean 1 has a property, a list of Bean 2s.

I want to display these on the screen but I don't want to display repeated 
occurrences of 
the same value from Bean 1.  For example, lets assume Bean 1 is surname and 
Bean 2 
is first names, and we have families, and what I want is something like:

Smith           Tom
    Mary
    Freddy
Jones           John
    Liz
    Jim
    Wendy

What I get is:

Smith           Tom
Smith           Mary
Smith           Freddy
Jones           John
Jones           Liz
Jones           Jim
Jones           Wendy

My code is simple:

<logic:notEmpty name="family">
<logic:iterate name="family" type="Family" id="aFamily">
   <logic:notEmpty name="aFamily" property="members">
   <logic:iterate name="aFamily" property="members" type="Member" id="aMember">
      <tr>
        <td>
           <p>
             <jsp:getProperty name="aFamily" property="name"/>
           </p>
        </td>
        <td>
           <p>
             <jsp:getProperty name="aMember" property="name"/>
           </p>
        </td>
      </tr>
   </logic:iterate>
   </logic:notEmpty> 
</logic:iterate>
</logic:notEmpty>

How do I change this to achieve what I want????  There must be a simple trick 
for 
doing this.

Kind regards
mc



FOCUS Computing
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.1/136 - Release Date: 15/10/2005


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

Reply via email to