引入jstl库:<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<td>                                    
     <div title="${cpe.position}">
        <c:if test="${fn:length(cpe.position)<35}">${cpe.position }</c:if> 
         <c:if test="${fn:length(cpe.position)>=35}">${fn:substring(cpe.position,0,32)}...</c:if>  
      </div>
</td>

 

相关文章:

  • 2022-01-30
  • 2021-11-03
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-03
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-05-09
  • 2022-03-07
相关资源
相似解决方案