Package model

Examples of model.Sportif


    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        try {
            int idSportif = Integer.parseInt(request.getParameter("idsportif"));
            SportifDAO spdao = new SportifDAO(dataSource);
            Sportif s = spdao.loadSportif(idSportif);//recupere les caracteristiques du sportif
            request.setAttribute("sportif", s);//stock dans la session le sportif

            if ("inscrireSportif".equals(request.getParameter("insSpEpInd")))  {
                getServletContext().getRequestDispatcher(
                        "/InscrirSportifChoixEp").forward(request, response);
View Full Code Here


//      fail("echec insertion du sportif " + e.getMessage());
//    }
//
//  }
     public void testEditerSportif() throws Exception {
        Sportif s = new Sportif();
    s.setNomSportif("bisou");
    s.setPrenomSportif("basa");
             
  //  s.setDateNaissance(new Date to_date('21/03/21','DD/MM/YY'));
             s.setNomPays("France");
                s.setNomBatiment("batiment3");
             
    s.setSexeSportif("masculin");
//               // s.setDateInscription(new Date());
//              //  s.setDateNaissance(new Date());
                  s.setNumLogement(2);
                s.setIdSportif(321);
    try {
      dao.editerSportif(s);
//      try {
//        dao.editerSportif(321);
//        fail("on ne devrait pas enreigsitre deux fois le même sportif");
View Full Code Here

TOP

Related Classes of model.Sportif

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.