示例#1
0
 /*
  * (non-Javadoc)
  *
  * @see controleur.AbstractServlet#preparerInfos(javax.servlet.http.
  * HttpServletRequest)
  */
 @Override
 protected void preparerInfos(HttpServletRequest req) {
   req.setAttribute("matricule", req.getParameter("numMat"));
   req.getSession().setAttribute("metier", metier);
   req.setAttribute("eleve", eleve);
   req.setAttribute("modif", 1);
   req.setAttribute("formModifierEleve", formModifierEleve);
   req.getSession().setAttribute("responsable", eleve.getResponsable());
   req.getSession().setAttribute("chambres", metier.recupererChambres());
   req.getSession().setAttribute("chambre", eleve.getChambre());
   req.getSession().setAttribute("classes", metier.recupererClasses());
   req.getSession().setAttribute("classe", eleve.getClasse());
 }
示例#2
0
 /*
  * (non-Javadoc)
  *
  * @see controleur.AbstractServlet#operationMetier()
  */
 @Override
 protected void operationMetier() throws Exception {
   metier = FacadeMetier.getInstance();
   metier.modifierEleve(eleve);
 }