You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Franck Lefebure <fl...@orangecaraibe.com> on 2004/03/29 21:26:02 UTC
test the presence of a tiles attribute
Hi,
How can I test the presence of a tiles attribute ?
eg :
<table><tr>
<td>
<tiles:insert attribute="body"/>
</td>
<td>
<tiles:insert attribute="test" ignore="true"/>
</td>
</tr></table>
In this example, if the "test" tiles attribute is empty the
I don't want to output the <td> and </td>
So I would like To do something like :
<tiles:present attribute="test">
<td>
<tiles:insert attribute="test">
</td>
</tiles:present>
How can I replace the non-existing <ttiles:present> tag ?
Thanks
--
Franck Lefebure