el_fhall - 2006-05-13

Hi all,

i want to create table that the number of columns changes from table to another. in fact i want to do this :

<jsp:scriptlet>
request.setAttribute("tabLength",tab.length());

</jsp:scriptlet>

<display:table name="tab">
<display:column property="[1]" title="id" group="1"/>
<display:column property="[2]" title="Matiere" group="2"/>
<display:column property="[5]" title="Cours"/>
<jsp:scriptlet>
while (int rank < tabLength){
<display:column property="[${rank}]" title="rank"/>
}
</jsp:scriptlet>
<display:column property="[${rank}]" title="Total"/>
</display:table>

so haw can i do ?
thanks a lot