码迷,mamicode.com
首页 > 其他好文 > 详细

struts标签内容截取

时间:2015-09-18 11:56:20      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="s"     uri="/struts-tags" %> 
<%@ page   contentType = "text/html; charset=UTF-8" %> 

<link rel="stylesheet" href="/kfdx/ajax/bootstrap/css/bootstrap.min.css">

<table class="content_table">
    <s:iterator value="weekArrangements"  status="status">
        <tr>
            <td width=‘100%‘ align="left">&nbsp;<a href="weekArrangementView.action?weekArrangementKey=<s:property value=‘key‘/>" target="_blank" title="内容查看">
                    <s:if test="content.length() > 18"><s:property value="content.substring(0,18)" />...</s:if>
                    <s:else><s:property value="content" /></s:else>
                </a>
                <s:if test="accessory != null && accessory != ‘‘">
                   <span class="glyphicon glyphicon-paperclip"></span> 
                </s:if>
            </td>
            <td nowrap align="center">
                <s:date name="date" format="yyyy-MM-dd" />
            </td>
        </tr>
    </s:iterator>
</table>

 

struts标签内容截取

标签:

原文地址:http://www.cnblogs.com/geniussoft/p/4818647.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!