Erro na jstl/core

6 respostas
TFAGUNDES6

Bom galera, estou construindo uma aplicação com struts2 e displaytag....
A displayTag esta listando os dados na tela, mas quando eu tento importar as tags libs jstl core não rola !!
Segue o erro !!!

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
JSP
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>    
    
<!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>

<div style="padding: 10px; padding-left:20px;">

	<display:table list="${nixies}" class="displaytag" pagesize="15" cellspacing="0" cellpadding="0" sort="list" id="nixie" 
		requestURI="${pageContext.request.contextPath}/nixie!buscar.action">
	
		<display:column  property="id" title="ID" sortable="true"/>
		<display:column  property="codigoNixie" title="CÓDIGO NIXIE"/>
		<display:column  property="campanha" title="CAMPANHA"/>
		<display:column  property="motivo" title="MOTIVO" sortable="true"/>
		<display:column  property="usuario" title="USUÁRIO"/>
		<display:column  property="dataCadastro" title="DATA CADASTRO">
			<fmt:formatDate value="${nixie.dataCadastro}" dateStyle="long"/>
		</display:column>
		<display:column title="Editar">
			<a href="${pageContext.request.contextPath }/nixie!save.action?nixie.id=${nixie.id}">Editar</a>
		</display:column>
Ja coloquei o jar do jstl na lib, ja inseri o cod abaixo no web.xml e tmb não funcionou...
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"

Já segui todos os forums q encontrei na net e nada de funcionar !!!!
Alguém poderia me ajudar nesse caso ?
Obrigado...

6 Respostas

luiz_renato

Vc já tentou assim ?

&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt; &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%&gt;

TFAGUNDES6

Tentei agora e n rolou, da o mesmo erro !!!

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this applicatio
luiz_renato

Vc colocou os 2 jar’s do JSTL jstl-impl-1.2.jar e jstl-api-1.2.jar na pasta lib?

aeciovc

verifique na doc do JSTL as versões do arquivo jar’s e qual importação deve ser utilizada.

&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt;  
&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%&gt;

ou

&lt;%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%&gt;  
&lt;%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%&gt;
M

como esta seu web.xml?

TFAGUNDES6

Luiz, muito obrigado pela ajuda !!!

Eu tinha o jstl.jar na minha aplicação.
Baixei os jars no site da sum :

jstl-impl-1.2.jar e jstl-api-1.2.jar

E agora funcionou tudo…

Criado 3 de janeiro de 2012
Ultima resposta 4 de jan. de 2012
Respostas 6
Participantes 4