--- android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureServlet.java 2010/09/16 17:18:24 1073 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureServlet.java 2010/09/16 17:48:17 1074 @@ -66,6 +66,7 @@ try { beans = fetcher.cachedLookupDepartures(station, arrival); + beans.arrival = arrival; } catch (java.io.IOException ioe) { logger.warning("Read failed, station="+station + ". " + ioe.getMessage() ); Statistics.getInstance().incrementDepartureErrors(); @@ -88,7 +89,7 @@ if (format.equalsIgnoreCase("xml")) { resp.setContentType("text/xml"); - resp.getWriter().print( formatXml(beans, arrival) ); + resp.getWriter().print( formatXml(beans) ); } else if (format.equalsIgnoreCase("html")) { String advStr = req.getParameter("advanced"); @@ -104,7 +105,7 @@ } - protected String formatXml(DepartureBean beans, boolean arrival) throws ServletException{ + protected String formatXml(DepartureBean beans) throws ServletException{ Serializer serializer = new Persister();