[javascript][Struts] recupere un int et afficher un string
Bonjour,
j'ai stocké dans ma BD, la langue sous forme de code. 0 pour Français, 1 pour anglais.
Je recupére ce code dans une combo si 0 j'affiche français.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
<logic:iterate name="maForm" property="msgDetails"
id="msg">
<table>
<tr>
<td><html:select name="msg" property="language">
<html:option value="0">Français</html:option>
<html:option value="1">Néerlandais</html:option>
</html:select></td>
</tr>
</table>
(...)
</logic:iterate> |
jusque là tout va bien mais je voudrais récupérer cette langue dans une input text. Comment faire?
:roll:
D'avance merci