Problème initialisation formulaire
salut tout le monde,
J'ai un problème avec l initialisation d'un formulaire.
J'ai une action /form qui forward vers une page ou il y a a mon formulaire.
Dans cette action je fais ceci :
Code:
1 2
| MonForm monForm = (MonForm)form;
monForm.setProp1(maProperiété); |
et dans mon struts-config.xml :
Code:
1 2 3
| <action path="/form" scope="request" name="monForm" validate="false">
<forward name="success" path="/WEB-INF/pages/form.jsp" />
</action> |
Hors, le formulaire reste vide comme s'il n'y avait pas eu d'initialisation dans l'action. Voici mon form
Code:
1 2 3 4 5 6 7 8 9 10 11
| <html:form action="/update">
<table>
<tr>
<td colspan="2" align="right"><INPUT
NAME="prop1" style="text-align: center;"></td>
</tr>
<tr><td><input
align="right" type="submit" name="valider" /></td>
</tr>
</table>
</html:form> |
Le champ prop1 reste vide. Qu'ai je oublié ?