1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
public ActionForward execute(ActionMapping mapping, ActionForm
form, HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
ArrayList rdv=new ArrayList();
String cible;
String nom=null;
gdrBean rdv1 = new gdrBean();
rdv1.setNom("Durant");
rdv1.setNumSecu("014655233");
rdv1.setPatient("Michel");
rdv1.setDate("Mar 12 Dec 2006");
rdv1.setHoraire("de 14h à 14h30");
rdv.add(rdv1);
.....................
if(form!=null){
HttpSession session = request.getSession();
session.setAttribute("rdv", rdv);
cible = "succes";
} else { cible = "echec"; }
return(mapping.findForward(cible));
}
} |
Partager