/[projects]/android/TrainInfoService/WebContent/ViewDepartures.jsp
ViewVC logotype

Annotation of /android/TrainInfoService/WebContent/ViewDepartures.jsp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 979 - (hide annotations) (download)
Sat Jul 10 10:59:49 2010 UTC (13 years, 10 months ago) by torben
File size: 1831 byte(s)
adapt htmlview/jsp to new departurebean 
1 torben 307 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2     pageEncoding="ISO-8859-1"%>
3     <%@ page import="dk.thoerup.traininfoservice.banedk.DepartureBean" %>
4 torben 585 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
5     <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %>
6 torben 307
7 torben 586 <c-rt:set var="advanced" value="${requestScope.advanced}"/> <!-- similar to request.getAttribute("advanced") -->
8     <c-rt:set var="stationname" value="${requestScope.stationname}"/>
9 torben 979 <c-rt:set var="departurebean" value="${requestScope.departurebeans}"/>
10 torben 586 <c-rt:set var="stationID" value="${requestScope.stationID}"/>
11 torben 307
12 torben 586
13 torben 307 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
14     <html>
15     <head>
16     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
17 torben 585 <title>Train info : ${stationname}</title>
18 torben 307 </head>
19     <body>
20    
21 torben 585 <h2>Station: ${stationname} </h2>
22     <a href="DepartureServlet?station=${stationID}&format=html&advanced=${!advanced}">Switch view</a><br>
23 torben 307 <table border="1">
24     <tr>
25     <th>Time</th>
26     <th>Updated</th>
27 torben 585 <c-rt:if test="${advanced == true}">
28     <th>Trainnumber</th>
29     </c-rt:if>
30 torben 307 <th>Destination</th>
31 torben 585 <c-rt:if test="${advanced == true}">
32     <th>Origin</th>
33     <th>Location</th>
34     </c-rt:if>
35 torben 307 <th>Status</th>
36     <th>Note</th>
37     </tr>
38 torben 585
39 torben 979 <c-rt:forEach var="dep" items="${departurebean.entries}">
40 torben 307 <tr>
41 torben 585 <td>${dep.time}</td>
42     <td>${dep.updatedString}</td>
43    
44     <c-rt:if test="${advanced == true}">
45     <td>${dep.trainNumber}</td>
46     </c-rt:if>
47    
48     <td>${dep.destination}</td>
49    
50     <c-rt:if test="${advanced == true}">
51     <td>${dep.origin}</td>
52     <td>${dep.location}</td>
53     </c-rt:if>
54    
55     <td>${ dep.status }</td>
56     <td>${ dep.note }</td>
57    
58 torben 307 </tr>
59 torben 585 </c-rt:forEach>
60    
61 torben 307
62     </table>
63    
64    
65     </body>
66     </html>

  ViewVC Help
Powered by ViewVC 1.1.20