JSTL COM TOM CAT 6 FUNCIONA ? urgente

6 respostas
E

já colei os dois arquivos jstl.jar e stantard.jar dentro da pasta lib.

Eclipse Platform
Version: 3.3.0
Build id: I20070621-1340
tom cat 6

<%@ 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">

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

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<c:import url="cabeçalho.jsp"/> ----->Aparece a mensagem sublinhada de tag desconhecida
</body>
</html>

6 Respostas

T

Poem isso no cabeçalho do seu web.xml que deverá funcionar.

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
  • Não esquece de fechar a :wink:
E

tgpadua:
Poem isso no cabeçalho do seu web.xml que deverá funcionar.

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
  • Não esquece de fechar a ;)

Galera já coloquei esse código acima no cabeçalho no web.xml, inclusive também está, mas o eclipse continua notificando que a tag <c: /> é desconhecida…Alguém pode me dar mais idéia ?

maurenginaldo

Altere a tag:

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

para

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

Me diz uma coisa, o código ta funcionando e o Eclipse que esta reclamando
ou nem funcionando o código está ?

gerdec

se servidor nem estiver carregando confira a versão da JSTL quem está colocando

E

[quote=maurenginaldo]Altere a tag:

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

para

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

Cara, troquei e funcionou, muito obrigado mesmo e a todos que colaboraram também !!! Valeu.

Criado 23 de janeiro de 2008
Ultima resposta 24 de jan. de 2008
Respostas 6
Participantes 4