[Request][Parameter] valeur null
Bonjour,
Lors de la validation de mon formulaire je fais passé une chaine de caractere en attribut "property" de mon image.
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<td class="case_transparente" style="width: 30px">
<html:image value="<%="edit,"+id%>" property="choix" alt="lala"
src="pages/img/button_edit.png" style="display:block" border="0">
</html:image>
</td>
<td class="case_transparente" style="width: 30px">
<html:image value="<%="delete,"+id%>" property="choix" alt="lala"
src="pages/img/button_drop.png" style="display:block" border="0">
</html:image>
</td> |
Je récupere celle ci dans mon action comme ceci:
Code:
1 2
|
request.getParameter("choix") |
La plupart du temps cela marche correctement mais parfois je récupere null.
Voila la partie du fichier struts-config associé a cette action:
Code:
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 27 28
|
<action
path="/selectUpdate"
type="com.ambadmin.action.SelectAction"
name="serviceForm"
validate="false"
scope="session"
input="/pages/editService.jsp">
<forward
name="success"
path="/pages/confDeleteService.jsp"/>
<forward
name="error"
path="/pages/technical_error.jsp"/>
<forward
name="editService"
path="/pages/editService.jsp"/>
<forward
name="newURL"
path="/pages/editURL.jsp"/>
<forward
name="cancel"
path="/pages/login.jsp"/>
<forward
name="confDeleteURL"
path="/pages/confDeleteURL.jsp"/>
</action> |
Merci d'avance