title: how to pass radiobutton selected object to struts2 action
body: <p>here is my radio with iterator</p>
  
  <pre><code>&lt;form action="&lt;s:url action="s/postCreation"/&gt;" method="post"&gt;
      &lt;s:iterator value="categories"&gt;
          &lt;s:radio name="myCategory" list="{Category}" listKey="DBId" listValue="title"/&gt;&lt;br/&gt;
      &lt;/s:iterator&gt;
  &lt;s:submit&gt;submit&lt;/s:submit&gt;
  </code></pre>
  
  <p>where <code>categories</code> is an attribute in my struts Action class:(which has forwarded me to this jsp page) :</p>
  
  <pre><code>private List&lt;Category&gt; categories;
  </code></pre>
  
  <p><code>listKey</code> and <code>listValue</code> contains values of my <code>Category</code> class which is :</p>
  
  <pre><code>public class Category  {
  
      private static final long serialVersionUID = 1L;
      private static Logger logger = Logger.getLogger(Category.class);
      private long DBId;
      private String title;
  
  }
  </code></pre>
  
  <p>now i want to be able to send the selected category object(and not just the DBId value) to <code>postCreation</code> struts2 action class and store it in an attribute named </p>
  
  <pre><code>private Category myCategory;
  </code></pre>