View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-view.jsp
Revision: 58790
Committed: Thu Mar 2 21:09:00 2017 UTC (3 years, 2 months ago) by jhoffman
File size: 2138 byte(s)
Log Message:
Moved project from forge.onehippo.org/svn/ without history

File Contents

# Content
1 <%--
2 Copyright 2009 Hippo
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS"
12 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 --%>
16 <%@ page language="java" session="true" %>
17 <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
18 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
19
20 <%@ page import="pingpong.PingPongPayload"%>
21
22 <portlet:defineObjects/>
23
24 <c:if test='${not empty payloads}'>
25 <table>
26 <c:forEach items="${payloads}" var="payload">
27 <c:choose>
28 <c:when test="${payload.ping}">
29 <c:choose>
30 <c:when test="${renderRequest.windowID eq payload.pingerID}">
31 <tr>
32 <td>pinging ...</td>
33 </tr>
34 </c:when>
35 <c:otherwise>
36 <tr>
37 <td>receiving ping from <c:out value="${payload.pingerID}"/></td>
38 </tr>
39 </c:otherwise>
40 </c:choose>
41 </c:when>
42 <c:otherwise>
43 <c:choose>
44 <c:when test="${renderRequest.windowID eq payload.pingerID}">
45 <tr>
46 <td>
47 received pong from <c:out value="${payload.pongerID}"/>
48 </td>
49 </tr>
50 </c:when>
51 <c:otherwise>
52 <c:if test="${verbose}">
53 <tr>
54 <td>
55 received pong from <c:out value="${payload.pongerID}"/> for ping from <c:out value="${payload.pingerID}"/>
56 </td>
57 </tr>
58 </c:if>
59 </c:otherwise>
60 </c:choose>
61 </c:otherwise>
62 </c:choose>
63 </c:forEach>
64 </table>
65 </c:if>
66 <form action='<portlet:actionURL/>' method='POST'>
67 <input type='submit' name='ping' value='ping'/>
68 <input type='submit' name='clear' value='clear'/>
69 </form>

Properties

Name Value
svn:eol-style native
svn:keywords Id