Récupération d'un objet dans des champs de texte d'une jsp
Bonjour,je suis débutante en struts1.3.8.
Je ne sais pas comment récupérer un objet dans des champs de texte:
Voilà le code dans mon action(FiltreAction):
Code:
1 2 3 4 5 6 7 8
| FiltreSS filtre=new FiltreSS();
filtre.setIdentifiantFiltre(idF.intValue());
filtre.setDescription(descriptionF);
filtre.setRequete(reqF);
String objetF="machaine";
req.setAttribute("filtreCh",filtre);
req.setAttribute("ObjetFiltre",objetF);
return mapping.findForward("affiche"); |
Dans struts-config.xml:
Code:
1 2 3
| <action path="/filtre" type="com.struts.controleur.FiltreAction" scope="request">
<forward name="affiche" path="/afficheFiltre.jsp" />
</action> |
Et dans ma jsp ou je veux afficher l'objet:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <table width="502" height="184" border="0">
<tr>
<td width="107">Description du Filtre </td>
<td width="157"><label>
<html:text property="description" scope="session"></html:text>
</label></td>
<td width="75">Objet de Filtre </td>
<td width="145"><label>
<html:text property="objetFiltre" scope="session"></html:text>
</label></td>
</tr>
<tr>
<td>Requete</td>
<td><label>
<html:text property="requete" scope="session"></html:text>
</label></td> |
Mais ça ne marche pas.Je suis bloquée à cette étape:cry:
Bien entendu j'utilise eclipse-jee-ganymede-win32 et apache-tomcat-6.0.18
Est ce que vous pouvez m'aider?
Merci