Problem with taglig in Java

0

I'm building a page JSP , however, I'm having a problem referencing my taglib of jstl . I'm referencing it this way:

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

But in Eclipse I'm getting the following error message:

  

Can not find the tag library descriptor for   " link "

Below is the code for my page JSP :

<%@page contentType="text/html"%>
<%@page pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Mostrando contatos</title>
    </head>
    <body>

        <table border="1" cellpadding="2" cellspacing="0">
            <tr>
                <th>ID - Atualizar</th>
                <th>Nome</th>
                <th>E-mail</th>
                 <th>Excluir </th>
            </tr>

        <c:forEach var="lista" items="${ requestScope.contatosList }">
            <tr>
                <td>
                    <a href="FrontController?action=SelecionarContato&id=${lista.codigo}">
                        ${lista.codigo}
                </a>
                                    </td>
                <td>${lista.nome}</td>
                <td>${lista.email}</td>

                <td>
                    <a href="FrontController?action=DeletarContato&id=${lista.codigo}">
                        Excluir
                    </a>
                </td>
            </tr>

        </c:forEach>
        </table>
                <br />
        <a href="formGravarContato.jsp">Adicionar um novo Autor</a>
        <br />
        <a href="index.jsp">Página Principal</a>
    </body>
</html>

Below is an image of the error:

Could anyone help me solve this problem?

    
asked by anonymous 28.11.2015 / 15:55

1 answer

2

Donwload these two jars and copy them into the / WebContent / WEB-INF / lib folder

javax.servlet.jsp.jstl

javax.servlet.jsp.jstl-api

The directory should look like this:

    
29.11.2015 / 17:55