slt,

j ai 2 listbox html:select é j aimerai bien de selection 1 é il te donnes la valeurs a 2 avec un bouton valider, voila ce truc:

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
function setAction(){
 
serveurchoixListForm.action="serveurchoixList.do?do=serveur";
serveurchoixListForm.submit();
}
 
 
<html:form action="serveurchoixList" ><html:hidden property="idserveur" />
<table width="725" border="0" align="center" height="66">
<tr>
<td align="right"><font size="2" face="Verdana"><strong>Client :</strong></font></td>
<td><html:select property="cli_code" onchange="setAction('serveurchoixList.do?action=idserveur')">
<html:option value=""></html:option>
<html:options collection="listClients" property="idcli" labelProperty="nomcli" />
</html:select>
</td>
<td align="right"><font size="2" face="Verdana"><strong>Serveur :</strong></font></td>
<td><html:select  property="srv_code">
<html:option value=""></html:option>
<html:options collection="listServeurs" property="idserveur" labelProperty="nomserveur" />
</html:select>
</td>
</tr>
<tr>
<td valign="top"><br></td><td height="21" colspan="2" align="right"><p><font face="Arial"><span style="font-size:9pt;"></span></font>
 
    <html:submit>Valider</html:submit>
    <font face="Arial">      </font></p></td>
</tr>
</table>