使用struts1.2 标签 判断字符串长度,截取字符串。
<c:if test="${fn:length(activityVO.activityName)>12}"><br /> ${fn:substring(activityVO.activityName,0,10)}..<br /></c:if><br /><c:if test="${fn:length(activityVO.activityName)<12}"><br /> ${activityVO.activityName }<br /></c:if><br /><br />
复制链接