--- android/TrainInfoService/WebContent/ViewDepartures.jsp 2010/02/05 13:57:39 584 +++ android/TrainInfoService/WebContent/ViewDepartures.jsp 2010/02/05 19:15:12 585 @@ -2,53 +2,62 @@ pageEncoding="ISO-8859-1"%> <%@ page import="java.util.List" %> <%@ page import="dk.thoerup.traininfoservice.banedk.DepartureBean" %> -<% -String stationname = (String) request.getAttribute("stationname"); -List departurebeans = (List) request.getAttribute("departurebeans"); -int stationID = (Integer) request.getAttribute("stationID"); -boolean advanced = false; -String advStr = request.getParameter("advanced"); +<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %> - -if (advStr != null) { - advanced = Boolean.parseBoolean(advStr); -} - - -%> +"/> +"/> +"/> +"/> -Train info : <%= stationname %> +Train info : ${stationname} -

Station: <%= stationname %>

-Switch view
+

Station: ${stationname}

+Switch view
- <%= advanced ? "" : "" %> + + + - <%= advanced ? "" : "" %> + + + + -<% for(DepartureBean dep : departurebeans) { %> + + - - - <%= advanced ? "" : "" %> - - <%= advanced ? "" : "" %> - <%= advanced ? "" : "" %> - - + + + + + + + + + + + + + + + + + -<% } %> + +
Time UpdatedTrainnumberTrainnumber DestinationOriginLocationOriginLocation Status Note
<%= dep.getTime() %><%= dep.getUpdatedString() %>" + dep.getTrainNumber() + "<%= dep.getDestination() %>" + dep.getOrigin() + "" + dep.getLocation() + "<%= dep.getStatus() %><%= dep.getNote() %>${dep.time}${dep.updatedString}${dep.trainNumber}${dep.destination}${dep.origin}${dep.location}${ dep.status }${ dep.note }