J'ai une page JSP qui contient un tableau et sur chaque ligne j'ai un checkbox, les données de la ligne et ensuite deux boutons supprimer et valider. Je veux qu'on selectionnant le checkbox et en appuyant sur l'un ou l'autre des boutons j'ai l'action correspondante qui est effectués.
Je voulais faire un formulaire avec deux actios mais ça ne marchait pas. Ensuite j'ai essaye de faire des formulaires imbriqués mais ça ne marchai pas non plus.
je poste ici mon code :
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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 <html:form action="Consignes_OrdoNonValidesSuppressionAction" method="POST"> <html:form action="ValidationAction" method="POST"> <logic:iterate id="ConsigneNonValide" name="LISTCONSIGNESNONVALIDES" property="listeConsignesScheduling"> <tr style="font-weight: bold; font-family: Arial; font-size:11px;" valign="top"> <td> <input type = "checkbox" name="sessioSuppr" value="<bean:write name="ConsigneNonValide" property="session"/>"/> <input type = "checkbox" name="sessionvalidation" value="<bean:write name="ConsigneNonValide" property="session"/>"/> </td> <td style="text-align:center; padding:2px 0px 2px 0px;border-bottom: 1px #76001F solid; background-color:white; font-weight: bold; font-family: Arial; font-size:11px;"><small> <bean:write name="ConsigneNonValide" property="session"/></small> </td> <td style="text-align:center; padding:2px 0px 2px 0px;border-bottom: 1px #76001F solid; background-color:white; font-weight: bold; font-family: Arial; font-size:11px;"><small><small> <bean:write name="ConsigneNonValide" property="uproc_job"/></small> </td> <td style="text-align:center; padding:2px 0px 2px 0px;border-bottom: 1px #76001F solid; background-color:white; font-weight: bold; font-family: Arial; font-size:11px;"><small><small> <bean:write name="ConsigneNonValide" property="code_erreur"/></small> </td> <td style="text-align:center; padding:2px 0px 2px 0px;border-bottom: 1px #76001F solid; background-color:white; font-weight: bold; font-family: Arial; font-size:11px;"><small><small> <bean:write name="ConsigneNonValide" property="contenu"/></small> </td> <td style="text-align:center; padding:2px 0px 2px 0px;border-bottom: 1px #76001F solid; background-color:white; font-weight: bold; font-family: Arial; font-size:11px;"><small> <bean:write name="ConsigneNonValide" property="trigramme"/></small> </td> <td style="text-align:center; padding:2px 0px 2px 0px;border-bottom: 1px #76001F solid; background-color:white; font-weight: bold;font-family: Arial; font-size:11px; width:100px"><small> <bean:write name="ConsigneNonValide" property="auteur" /></small> </td> <td> <html:submit value="validate" style="width:80px; height: 20px;"> </html:submit> </td> <td> <html:submit value="Remove" style="width:80px; height: 20px;"> </html:submit> </td> </tr> </logic:iterate> </html:form> </html:form>
quelqu'un aura une solution ou une proposition comment faire.
Merci.
Partager