|
<logic:iterate id="news" name="list">
<tr>
<td width="76%">· <a class="link1" href="news_show.jsp" target=_blank>
<bean:write name="news" property="name"/></a></td>
<td width="24%" height="30" align="center"><bean:write name="news" format="yyyy-MM-dd" property="createtime"/></td>
</tr>
</logic:iterate>
在页面中,我用<bean:write name="news" property="name"/>输出name的内容,但是name的内容太长了,我想截取一定的长度的字符,查了半天书,找不出什么办法可以实现,请各大虾们指教!! |
|