<td>Name
<td>Description
<td>Date Created
</tr>
<@s.iterator id="room" value="%{availableRooms}" status="stat">
<tr class="tableContent">
<#if stat.isOdd()>
<td class="tableOperationColumnOdd">
<#else>
<td class="tableOperationColumnEven">
</#if>
<@s.url id="url" action="enterRoom" namespace="/chat">
<@s.param name="roomName" value="%{#room.name}" />
</@s.url>
<@s.a href="%{url}">Enter
</td>
<#if stat.odd>
<td class="tableNameColumnOdd">
<#else>
<td class="tableNameColumnEven">
</#if>
<@s.property value="%{#room.name}" />
</td>
<#if stat.odd>
<td class="tableDescriptionColumnOdd">
<#else>
<td class="tableDescriptionColumnEven">
</#if>
<@s.property value="%{#room.description}" />
</td>
<#if stat.odd>
<td class="tableDateCreatedColumnOdd">
<#else>
<td class="tableDateCreateColumnEven">
</#if>
<@s.property value="%{#room.creationDate}" />
</td>
</tr>
</@s.iterator>
</table>
Other Struts examples (source code examples)
Here is a short list of links related to this Struts roomsAvailable.ftl source code file:
|
Struts example source code file (roomsAvailable.ftl)
This example Struts source code file (roomsAvailable.ftl) is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.
The Struts roomsAvailable.ftl source code
<table class="table">
<tr class="tableHeader">
<td>Operation |