「JSTL」c:ifでフィールドの値が空を判定する
書式
!empty 変数名
使用例
<c:if test="${!empty username}">
${username}
</c:if>
<c:if test="${!empty username}">
${username}
</c:if>
<c:if test="${!empty username}"> ${username} </c:if>
Coding Changes the World
書式
!empty 変数名
使用例
<c:if test="${!empty username}"> ${username} </c:if>