title: Struts 2: Set ID of <td> to iterator value?
body: <p>I have the following code, how do I go about setting the ID of the TD equal to that of the Year that is returned from my list (iterator)?  I need this so I can then perform JavaScript functions on the table/TD (hide/show...).</p>
  
  <pre><code>&lt;table id="earningtesttable"&gt;
         &lt;s:iterator value="earningsTest"&gt;
              &lt;tr&gt;
                 &lt;td id=""&gt; &lt;!--I want to set the id also equal to the year--&gt;
                      Year: &lt;b&gt;&lt;s:property value="year" /&gt;&lt;/b&gt;
                 &lt;/td&gt;
              &lt;/tr&gt;
         &lt;/s:iterator&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Thanks!</p>