예제 #1
0
  private String verwerkRequest(HttpServletRequest request, Mandje mandje)
      throws ServletException, IOException {
    String film = request.getParameter("film");
    String mode = request.getParameter("submit");

    if (mode.equals("Koop") && (film != null)) {
      mandje.add(film);
      return "/ToonMandje";
    } else if (mode.equals("Verder Winkelen")) {
      return "/Catalogus";
    } else {
      return "/index.html";
    }
  }