# Showcase - Chat - Room Selection

<@s.head theme="ajax" />

### Operations

<@s.url id="url" action="logout" namespace="/chat" />

- <@s.a href="%{#url}">Logout

<#if (actionErrors?size gt 0)>

### Action Errors

<@s.actionerrors />

### Users Available In Chat

<@s.url id="usersAvailableUrl" action="usersAvailable" namespace="/chat/ajax" /> <@s.div id="usersAvailable" delay="1" updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}" theme="ajax" href="%{usersAvailableUrl}" class="box"> Initial Loading Users ...

### Rooms Available In Chat

<@s.url id="roomsAvailableUrl" action="roomsAvailable" namespace="/chat/ajax" /> <@s.div id="roomsAvailable" listenTopics="topicRoomCreated" delay="1" updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}" theme="ajax" href="%{roomsAvailableUrl}" > Initial Loading Rooms ...

### Create Room In Chat

<@s.form id="createRoomId" action="createRoom" namespace="/chat/ajax" method="POST" theme="ajax"> <@s.textfield label="Room Name" required="true" name="name" /> <@s.textarea theme="xhtml" label="Room Description" required="true" name="Description" /> <@s.submit value="%{'Create Room'}" resultDivId="createRoomResult" notifyTopics="topicRoomCreated" theme="ajax" align="left" />