Tôi đã nhìn chằm chằm vào thẻ lồng dưới đây khoảng một giờ và tôi vẫn không thể hiểu tại sao tôi tiếp tục nhận một JspTagException
:Không hiểu JspTagException: "Sử dụng trái phép <when> thẻ kiểu mà không có <choose> làm cha mẹ trực tiếp
"Illegal use of <when>-style tag without <choose> as its direct parent"
bạn không được phép thẻ điều kiện tổ này sâu trong JSTL
<c:choose>
<c:when test="${rec.image1Available}">
<img alt="altname" src="/img1.jpg" alt="altname" />
<c:otherwise>
<c:choose>
<c:when test="${rec.image2Available}">
<img alt="altname" src="/img2.jpg" alt="altname" />
<c:otherwise>
<c:choose>
<c:when test="${rec.image3Available}">
<img alt="altname" src="img3.jpg" alt="altname" />
<c:otherwise>
<img alt="altname" src="/holder.jpg" alt="altname" />
</c:otherwise>
</c:when>
</c:choose>
</c:otherwise>
</c:when>
</c:choose>
</c:otherwise>
</c:when>
</c:choose>