I have a very simple radio tag like following
<s:radio label="correctOption" name="correctAnswer" id="correctOption"
list=" #{'1':'1','2':'2','3':'3','4':'4'}"
value="questionVo.correctAnswer"/>
questionVo.correctAnswer returns 2. So I want the second radio button to be
preselected but it is not happening. I even tried:
<s:radio label="correctOption" name="correctAnswer" id="correctOption"
list=" #{'1':'1','2':'2','3':'3','4':'4'}" value="%{1}"/>
but that does not work either.
what am I doing wrong?