Code: Select all
<c:choose>
<c:when test="${hour < 12}">
<c:out value="Good Morning" />
</c:when>
<c:when test="${hour > 12}">
<c:out value="Good Evening" />
</c:when>
</c:choose>
Code: Select all
<c:choose>
<c:when test="${hour < 12}">
<c:out value="Good Morning" />
</c:when>
<c:otherwise>
<c:out value="Good Evening" />
</c:otherwise>
</c:choose>
However, question is single choice only.