JSTL sacana

2 respostas
M

Olá pessoal do fórum, estou com um problema…

Em ambiente de testes minhas páginas jsp funcionaram normalmente, porém qdo subi para o servidor, começaram os problemas

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 application

Pesquisando pelo fórum vi uma alternativa seria colocar os arquivos “.tld” na pasta WEB_INF e adicionar as seguintes linhas no web.xml

<taglib>
<taglib-uri>
http://java.sun.com/jstl/core
</taglib-uri>
<taglib-location>
/WEB-INF/c.tld
</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://java.sun.com/jstl/sql
</taglib-uri>
<taglib-location>
/WEB-INF/sql.tld
</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://java.sun.com/jstl/fmt
</taglib-uri>
<taglib-location>
/WEB-INF/fmt.tld
</taglib-location>
</taglib>

e na diretiva da jsp coloco a uri
assim
<%@taglib uri=“WEB-INF/c.tld” prefix=“c”%>

Agora esta da o erro

Ja verifiquei os jars jstl e standart e estao no Lib…

Me ajudem :?: :?:

2 Respostas

E

No web xml

&lt;taglib&gt;
     &lt;taglib-uri&gt;/WEB-INF/c.tld&lt;/taglib-uri&gt;
     &lt;taglib-location&gt;/WEB-INF/c.tld&lt;/taglib-location&gt;
  &lt;/taglib&gt;
na jsp
&lt;%@ taglib uri="http&#58;//java.sun.com/jstl/core" prefix="c" %&gt;
M

Olha só q loucura Eclipse, começou a funcionar do nada…
Será que era só o servidro reiniciar o TomCAt :?: :?: :?:

valeu

Criado 25 de maio de 2006
Ultima resposta 25 de mai. de 2006
Respostas 2
Participantes 2