0
People recently was working with JSTL and I came across the following situation, I tried to add 3 tags when within a Choose tag and the last tag just doesn’t work, the code was like this:
<c:choose>
<c:when test="${pagina != null}">
<c:import url="${pagina}.jsp"></c:import>
</c:when>
<c:when test="${mensagem != null}">
<br><p><c:out value="${mensagem}"></c:out></p>
</c:when>
<c:when test="${salvarTodosCertificados != null}">
<p>Caso queira baixar todos os certificados em zip:</p> <br>
Clique <a href="site?comando=gerarCertificado&quantos=todos">aqui</a>
</c:when>
</c:choose>
The maximum number of tags when I can put inside a Choose tag is actually 2?
I had to replace the above code with this:
<c:choose>
<c:when test="${pagina != null}">
<c:import url="${pagina}.jsp"></c:import>
</c:when>
<c:when test="${mensagem != null}">
<br><p><c:out value="${mensagem}"></c:out></p>
</c:when>
</c:choose>
<c:choose>
<c:when test="${salvarTodosCertificados != null}">
<p>Caso queira baixar todos os certificados em zip:</p> <br>
Clique <a href="site?comando=gerarCertificado&quantos=todos">aqui</a>
</c:when>
</c:choose>
This proceeds or I set something wrong or whatever?