# Showcase - Chat - Show Room

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

### Operation

<@s.url id="url" action="exitRoom" namespace="/chat"> <@s.param name="roomName" value="%{roomName}" />

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

### Users Available In Chat

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

### Messages Posted In Room [${roomName?default('')}]

<@s.url id="url" value="/chat/ajax/messagesAvailableInRoom.action" includeContext="true"> <@s.param name="roomName" value="%{roomName}" /> <@s.div id="messagesInRoom" href="%{#url}" includeContext="true" theme="ajax" delay="1" updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}" listenTopics="topicMessageSend"> Initial Messages In Room ...

### Send Messages

<@s.form id="sendMessageForm" action="sendMessageToRoom" namespace="/chat/ajax" method="POST" theme="ajax">
<@s.textarea label="Message"name="message" theme="xhtml" /> <@s.hidden name="roomName" value="%{roomName}" /> <@s.submit id="submit" theme="ajax" resultDivId="sendMessageResult" notifyTopics="topicMessageSend" value="%{'Send'}" />

### Users Available In Room [${roomName?default('')}]

<@s.url id="url" value="/chat/ajax/usersAvailableInRoom.action" includeContext="true"> <@s.param name="roomName" value="%{roomName}" /> <@s.div id="usersAvailableInRoom" href="%{#url}" includeContext="true" theme="ajax" delay="1" updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}"> Initial Users Available In Room ...