@Override public String execute(HttpServletRequest request) { int departureId = Integer.parseInt(request.getParameter("id")); DepartureDetail departure = Factory.getInstance().getDataRepository().getDepartureDetail(departureId); System.out.println(departure.getReservations().size() + " this is the size of reservations"); request.setAttribute("departure", departure); return super.execute(request); }
@Override public String execute(HttpServletRequest request) { String idAsstr = request.getParameter("accountid"); long id = Long.parseLong(idAsstr); AccountDTO account = Factory.getInstance().getBankController().getAccount(id); request.setAttribute("account", account); Date date = new Date(); request.setAttribute("today", date); return super.execute(request); // To change body of generated methods, choose Tools | Templates. }