在jsp页面用到jstl的if或when标签判断字符串不为空的时候,书写格式:

<c:when test="${not empty paramName}">
</c:when>
<c:when test="${paramName != ''}">
</c:when>

在jsp页面用到jstl的if或when标签判断字符串为空的时候,书写格式:

<c:when test="${empty paramName}">
</c:when>
<c:when test="${paramName == null or paramName == ''}">
</c:when>

 

相关文章:

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