About Question enthuware.jwpv6.2.749 :
Posted: Thu Mar 22, 2012 10:58 am
Both and works as asked.
However, question is single choice only.
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.