一.EL表达式截取字符串
<td align="left" title="${bean.StoreDeptText}">
<c:if test="${fn:length(bean.StoreDeptText)>100 }">
${fn:substring(bean.StoreDeptText, 0, 100)}...
</c:if>
<c:if test="${fn:length(bean.StoreDeptText)<=100 }">
${bean.StoreDeptText}
</c:if>
</td>
二.struts2标签截取字符串
<td class="align-left" title="<s:property value="SpecModel" />" nowrap="nowrap">
<s:if test="SpecModel.length() < 250">
<s:property value="SpecModel" />
</s:if>
<s:else>
<s:property value="SpecModel.substring(0,25)" /> …
</s:else>
</td>