Foreach com titulo por lista!

1 resposta
A

oi galera ,

É minha primeira vez aqui e não sei se estou postando certo mas vamos lá.

tenho uma lista e tras todas as informações que preciso mas gostaria de agrupa-las por vendedor e clientes e depois trazer os itens de cada cliente …

tentei de todas as formas e não consegui !!1 procurei muito no google e não achei nara relativo !!!1

<table border="0" align="center" cellpadding="3" cellspacing="3" id="tabela1"target="relatorio" >
        <tr id="tabela1">


                <td align="center" nowrap="nowrap">Cod.Age</td>
                <td align="center" nowrap="nowrap">Agente</td>
                <td align="center" nowrap="nowrap">Cod.Item</td>
                <td align="center" nowrap="nowrap">Item</td>
                <td align="center" nowrap="nowrap">Qtd</td>
                <td align="center" nowrap="nowrap">Total</td>
              </tr>
              <c:forEach var="cliente" items="${clientes}" >
              <td align="center" nowrap="nowrap">${cliente.codagente} - ${cliente.agente}</td>
              <td align="center" nowrap="nowrap"> </td>
          
                 ${cliente.clfCod} -  ${cliente.clfCod} 
                                                    
             <td align="center" nowrap="nowrap">
                    ${cliente.coditem} - ${cliente.itemdesc}
             </td>
              </c:forEach>
             
            </table>

obrigado !!!1
andré

1 Resposta

A

niguem ???/

Criado 7 de julho de 2009
Ultima resposta 8 de jul. de 2009
Respostas 1
Participantes 1