3
I have a very annoying problem, when my jsp is mounted I have a jstl foreach that leaves my final code absurdly giant, worse than I realized it’s just blank space. Follows the code :
<c:forEach var="column" items="${tela.targetXml.column}" varStatus="rowStatus" >
<c:set var="podeAdicionar" value="true" />
<c:forEach var="col" items="${tela.columns}" varStatus="colTelaStatus" >
<c:if test="${col.nome == column.name}">
<c:set var="podeAdicionar" value="false" />
</c:if>
</c:forEach>
<c:if test="${column.visivel && podeAdicionar}">
div2 = jQuery('<div class="col-md-12" onclick="adicionarColuna(\'${column.name}\', \'${column.label}\', this);event.preventDefault();event.stopPropagation();">');
lb = jQuery('<label name="${column.name}">').text('${column.label}');
div2.append(lb);
div.append(div2);
</c:if>
</c:forEach>
This stretch of foreach leaves this space blank :
Need to remove this, the ideal would be not need to mimic the file to avoid errors.
What happens if you put
<%@ page trimDirectiveWhitespaces="true" %>
at the beginning of the page?– Denis Rudnei de Souza
I went after this configuration after your reply and managed to resolve it in web.xml, thanks for the tip.
– Mateus Veloso