判断字符串包含,下划线

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>


<c:choose>
         //判断rpt.toolInfo中是否包含WT
         <c:when test="${fn:contains( rpt.toolInfo , 'WT')}">
                    //text-decoration:underline 下划线
                     <td style="text-align:left;text-decoration:underline; color: blue;" >${rpt.eqptype}</td>
         </c:when>
         <c:otherwise>
                  <td style="text-align:left;" >${rpt.eqptype}</td>
         </c:otherwise>
</c:choose>

你可能感兴趣的:(字符串)