I have a checkbox inside an iterator, in a JSP page. Whatever I tried, the attribute value of the checkbox tag stay with the 'true' value, even when the value of the field value is the one I want. But I can't get back it. I only get 'true'.
<s:iterator
id="pieceJointe"
value="listePiecesJointesTrouvees">
<tr height="30">
<td>
<s:property value="codeDemande" />
</td>
<td
headers="actions"
class="center">
<s:checkbox
value="%{chemin}"
fieldvalue="%{chemin}"
name="checkbox" />
</td>
</tr>
</s:iterator>
The variable chemin
getting back with fieldset attribute is the one I want. I can see it with the Web Inspector but I can't take it in the code. I only get back the value of 'value' variable which is desperately "true" value.