jsp中JSTL应用
截取字的长度
[/align][align=left] <td height="25" align="center">
<c:choose>
<c:when test="${fn:length(list.departName)>10}">
<font title="${list.departName }"><c:out value="${fn:substring(list.departName, 0, 10)}..." /></font>
</c:when>
<c:otherwise>
${list.departName}
</c:otherwise>
</c:choose>
</td>