Hi All,
I have a jsp with a radio tag setup like so:
<s:radio name="answer" id="answer"list="game.question.answers"
listKey="id"listValue="answer"onclick="document.getElementById('CheckAnswer').submit()">
< /s:radio>
What I display in the radio buttons are answers, once the userclicks on an
answer the form is submitted, my action retrieves the correctanswer and puts it
in both an id and an answer property defined in the sameaction. Now, what I
want to show to the user is the correct answer after heselects any answer, even
if it’s the correct one. However even though I havesetup my action with
an id and answer property, the radio button does notdefault to the value I am
putting in those properties. The documentationspecifies that this works for
maps, so does radio buttons work the same way fora Collection? Or how do they
work for setting checked options using a Collection?Can anyone help me?
Thanks
-Cesar