1 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
2 |
<%@ page import="dk.thoerup.droidradarservice.DroidBean" %> |
3 |
<%@ page import="java.util.List" %> |
4 |
<% |
5 |
@SuppressWarnings("unchecked") |
6 |
List<DroidBean> droids = (List<DroidBean>) request.getAttribute("droids"); |
7 |
%> |
8 |
|
9 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
10 |
<html> |
11 |
<head> |
12 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
13 |
<title>Droids</title> |
14 |
</head> |
15 |
<body> |
16 |
|
17 |
Debug: <a href="ResetLastUpdate">Reset last update</a> |
18 |
<br> |
19 |
|
20 |
<table border="1" cellspacing="0"> |
21 |
<tr><th>Imei</th><th>handle</th><th>group</th><th>latitude</th><th>longitude</th><th>lastUpdate</th></tr> |
22 |
|
23 |
|
24 |
<% for(DroidBean droid : droids) { %> |
25 |
<tr> |
26 |
<td><%=droid.getImei() %></td> |
27 |
<td><%=droid.getHandle() %></td> |
28 |
<td><%=droid.getGroup() %></td> |
29 |
<td><%=droid.getLatitude() %></td> |
30 |
<td><%=droid.getLongitude() %></td> |
31 |
<td><%=droid.getLastUpdate() %></td> |
32 |
</tr> |
33 |
|
34 |
<%} %> |
35 |
|
36 |
</table> |
37 |
|
38 |
</body> |
39 |
</html> |