title: Preselect radio button in Struts2
body: <p>Using <a href="http://en.wikipedia.org/wiki/Struts2" rel="nofollow noreferrer">Struts2</a>, I have a very simple radio tag like following</p>
  
  <pre><code>    &lt;s:radio label="correctOption" name="correctAnswer" list=" 
  #{'1':'1','2':'2','3':'3','4':'4'}" value="questionVo.correctAnswer"/&gt;
  </code></pre>
  
  <p><code>questionVo.correctAnswer</code> returns <code>2</code>. So I want the second radio button to be preselected but it is not happening. I even tried: </p>
  
  <pre><code>    &lt;s:radio label="correctOption" name="correctAnswer" list=" 
  #{'1':'1','2':'2','3':'3','4':'4'}" value="%{1}"/&gt;
  </code></pre>
  
  <p>But that does not work either. </p>
  
  <p>What am I doing wrong?</p>