msi_ - 2005-11-26

Hello and sorry for my english. I am trying display columns, but the number of columns is variable and their titles too. For example:

In one case: 1x0 | 1x1 | 1x2
Other case : 1x0 | 1x2 | 2x2 | 4x3
Other case : 3x1 | 3x2

I use an ArrayList with information of table. The number and title of columns are in a HashMap. One example is:

Name | 1x0 | 1x1 | 1x2
A | | |

My problem is i can´t put variable title columns. The code is:

<display:table id="tabla" name="sessionScope.tabladatos">

<display:column title="Name" property="nombre"/>

<logic:iterate id="item" name="tabla" property="situaciones">

<display:column title="¿¿¿???"></display:column>
</logic:iterate>

</display:table>


I can recover information from request object and use that value in title column:

<%String name = (String) request.getAttribute("Something"); %>
.....
<display:column title="<%=name %>">
...

I can recover the value that i need: <bean:write name='item' property='key'/>

but i can´t put:
<% String situacion = <bean:write name='item' property='key'/> %>

<logic:iterate id="item" name="tabla" property="situaciones">

<display:column title="<%=situacion"></display:column>

</logic:iterate>

¿Is possible put a variable title using a HashMap?