项目中用到的,现在记录一下,好记性不如烂键盘。
<s:iterator value="user"id="myu" status="status" step="1">
<div class="topic" style="width:950px;height:auto;">
<s:set value="#attr.leaveword[#attr.status.getIndex()]" name="myl" scope="request"/>
<div class="left" style="float:left;width:200px;margin-left:50px;">
<img src="<s:text name="#myu.imgurl"/>"/><br><br>
<s:property value="#myu.username"/>
</div>
<div class="right" style="float:left;width:550px;">
<s:set value="ttopic"/>
<table width="550px">
<tr><td>
<s:property value="#request.myl.content" escape="false"/>
</td></tr></table>
<br>
</div>
</div>
<hr>
</s:iterator>