I have a table with many rows, and each row has a link to a modal dialog box using struts2-jquery. I need to set a unique ID for each dialog in order to set this up, but I've tried multiple options without luck.
<s:iterator value="myBeanList" var="rrSum" status="status">
<tr>
<td>
<s:url id="ajax%{status.index}" action="smoRiskRegister" var="ajaxURL">
<s:param name="requestRiskID"><s:property value="#rrSum.rid" /></s:param>
</s:url>
<sj:dialog id="dialog3" href="%{ajaxURL}" title="Testing" />
<sj:a openDialog="dialog3"><s:property value="#rrSum.rid" /></sj:a>
</td>
</tr>
</s:iterator>
So instead of "dialog3" I want something like dialog%{status.index}. I can set the ID to this... but how do I reference it in the anchor tag? Unfortunately there is no var parameter for dialog :(