@Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        String promo = request.getParameter("promo");
        String etat = request.getParameter("etat");
        String url3 = "";
        if (etat.equals("") && promo.equals("")) {
            url3 = CANDIDATURE;
        }
        else if (!promo.equals("")) {
            url3 = PROMOCANDIDATURE + promo;
        }
        else if (!etat.equals("")) {
            url3 = ETATCANDIDATURE + etat;
        }
        ClientResource resource3 = null;
        try {// Preparer l'appel au service Web distant
            resource3 = new ClientResource(url3);
            // Recuperer la reponse en arbre DOM
            DomRepresentation reponse = new DomRepresentation(resource3.get());
            Document doc = reponse.getDocument();
            // Le mettre en post-it de la requete pour le passer a la jsp
            //request.setAttribute("dom", doc);
            request.setAttribute("dom", doc);


        } catch (ResourceException exc) {
            out.println("Erreur : " + exc.getStatus().getCode() + " ("
                    + exc.getStatus().getDescription() + ") : "
                    + resource3.getResponseEntity().getText());
        }
        RequestDispatcher rd4 = request.getRequestDispatcher("listeCandidatureByPromoEtat.jsp");
        rd4.forward(request, response);
    }