Bonjour,
j'ai un souci : je developpe une application avec des onglets. Je voudrais recuperer l'objet que j'ai deja crée pour lui rajouter des informations quand l'utilisateur clique sur un onglet.
J'ai donc crééer une action comme ça :
or j'obtiens un java.lang.ClassCastException
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class GenealogieAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) throws Exception { HttpSession session = req.getSession(); AnimalResultat animalRecherche = null; Animal taureau=(Animal) session.getAttribute("animalFiche"); AnimalServiceImpl animalMetier = new AnimalServiceImpl(); animalMetier.initialiser(); taureau = animalMetier.completerGenealogie(taureau); if (taureau.getMere() != null) { animalRecherche.setNomMere(taureau.getMere().getNom()); animalRecherche.setCodePaysMere(taureau.getMere() .getCodePays()); animalRecherche.setIdentifiantMere(taureau.getMere() .getNumeroNational());
est-ce que quelqu'un peux m'aider ?
Partager