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