slt, je travail avec myeclipse et struts et hibernate,
j'ai 2 tables liées
clients(idcli,nomcli)
serveurs(idserveur,idcli,nomserveur)

j'ai 2 listes déroulantes, j'ai déja récupérer le contenu extraire d'une bade de donnée (mysql)pour chacune la première par le nomcli et la douzième par nomserveur

donc le problème, je vouderais que quand je sélectionne une valeur dans la première, le contenu de la seconde s'ajuste parce que selon le choix dans la première liste, je n'aurai pas les même éléments (items) dans la seconde.

voila ma page jsp

<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="javascript:submitChange()">
<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>
<table border="1" width="100%" align="center">

<tr bgcolor="#999999">
<th><font color="#FFFFFF">#</font></th>
<th><font color="#FFFFFF">Client</font></th>
<th><font color="#FFFFFF">Nom Serveur</font></th>
<th><font color="#FFFFFF">NameSpace ID</font></th>
<th><font color="#FFFFFF">Login</font></th>
<th><font color="#FFFFFF">Defaut</font></th>
</tr>
<logic:empty name="serveurchoixListForm" property="listServeurs">
<tr align="center">
<td colspan="4"><div align="center"><strong>Pas de Serveur à afficher</strong></div></td>
</tr>
</logic:empty>
<logic:notEmpty name="serveurchoixListForm" property="listServeurs">
<logic:iterate name="serveurchoixListForm" property="listServeurs" id="element">
<tr>
<%-- print out the book informations --%>
<td bgcolor="#EFEFEF"><bean:write name="element" property="idserveur" /></td>
<td bgcolor="#EFEFEF"><bean:write name="element" property="clients.nomcli" /></td>
<td bgcolor="#EFEFEF"><bean:write name="element" property="nomserveur" /></td>
<td bgcolor="#EFEFEF"><bean:write name="element" property="namespaceId" /></td>
<td bgcolor="#EFEFEF"><bean:write name="element" property="login" /></td>
<td bgcolor="#EFEFEF"><bean:write name="element" property="defaut" /></td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
</html:form>