1
I am programming a page to inform you that the searched item has not been found. I wanted to know what I’m doing wrong and what would be a solution.
<c:forEach items="${proposta}" var="proposta">
            <div>
            <img src="..." alt="..." class="img-circle">
            <c:if test="${proposta.getTitulo() == 'null'}">
                <h1>Página não Encontrada</h1>
            </c:if>
            <br>
                <label>titulo:</label>
                <label>${proposta.getTitulo()}</label>
            <br>
                <label>subtitulo:</label>
                <label>${proposta.getSubtitulo()}</label>
            <br>
                <label>Necessidade:</label>
                <label>${proposta.getNecessidadeString()}</label>
            <br>
                <label>Area de Interesse :</label>
                <label>${proposta.getArea_interesseString()}</label>
            <br>
            <a class="btn btn-primary btn-sm" href="proposta?id=${proposta.getId_proposta()}">Exibir proposta </a>
            <br>
            </div>
        </c:forEach>
Why are you doing a foreach? Try to explain your question better.
– Marconi