Operations
<@s.url id="url" action="logout" namespace="/chat" />
- <@s.a href="%{#url}">Logout@s.a>
<#if (actionErrors?size gt 0)>
Action Errors
<@s.actionerrors />
#if>
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 ...
@s.div>
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 ...
@s.div>
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" />
@s.form>