Erro JSTL javax / servlet / jsp / jstl / core / erro LoopTag ao usar c: forEach tomcat ver7.0
Oi usando
eclipse juno, projeto dinâmico da web
apache Tomcat v7.0 (que tem seu próprio jstl-1.2.1.jar) eu recebo este erro
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/LoopTag
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
quando tento executar este código jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:forEach var="test" items="a,b,c">
${test}
</c:forEach>
</body>
</html>
parece não estar vendo a classe javax.servlet.jsp.jstl.core.LoopTag que está no jar
Eu li algo sobre filtros bloqueando arquivos javax.servlet
Qualquer ajuda seria muito apreciada
ok eu acho que encontrei a solução javax.servlet.jsp.jstl-1.2.1.jar
não contém as classes javax.servlet.jsp.jstl.core
jstl-1.2.jar precisa ser adicionado também