<table width="100%" cellspacing="0" cellpadding="0">
<s:set name="i" value="1"></s:set>
<s:iterator id="stocks" value="stockList" status="st">
<s:set name="type" value="#stocks.getType()"></s:set>
<tr>
<td><s:property value="#i"/>.
<a href="/www.jspa?forumid=<s:property value="#stocks.code" />">
<s:property value="#stocks.name" />(<s:property value="#stocks.code.replaceAll(key,'<span class=rd>'+key+'</span>')" escape="false"/>)</a>
</td>
</tr>
<s:set name="i" value="#i+1"></s:set>
</s:iterator>
</table>