判断el表达式字符串的长度并截取
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
//若字符串长度大于60截取0到60并在后面加 ...
<c:if test="${fn:length(genMsg)>60 }">
${fn:substring(genMsg, 0, 60)}...
</c:if>
<c:if test="${fn:length(genMsg)<=60 }">
${genMsg }
</c:if>