/** @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { System.out.println("processRequest " + response + " " + request); Candidat c = (Candidat) request.getSession().getAttribute("candidat"); ArrayList<Inscription> listeInscription; // Construire la liste des tests et la placer en session try { listeInscription = InscriptionStore.rechercherInscription(c.getIdCandidat()); System.out.println(listeInscription); request.setAttribute("inscriptions", listeInscription); RequestDispatcher dispatcher = null; dispatcher = request.getRequestDispatcher("/CandidatInscriptions.jsp"); dispatcher.forward(request, response); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }