Personally I was recently working with JSTL and I came across the following situation, I tried to add 3 tags when inside a choose tag and the last tag just does not work, the code looks 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>
Does this proceed or set something up wrong or do I know?