JSF + Eclipse

3 respostas
F

Olá pessoal,

Estou tentando utilizar o MyFaces + Eclipse, o problema é o seguinte quando escrevo qualquer tag JSF ela simplesmente parece ser ignorada pelo container Web, que no caso é o Tomcat.

Ex: uma outputText para imprimir uma mensagem.

Alguém tem alguma sugestão?.

Desde já grato,

Felipe

3 Respostas

ricardolecheta

vc declarou a tag? senão não pode utilizá-la.

<%@ page contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
F
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<f:view>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<h:form>
	<h:outputText value="testando"></h:outputText> 
</h:form>  
</body>
</html>
</f:view>

o meu JSP está dessa maneira,
e agora ele gera esse erro.

javax/servlet/jsp/jstl/core/Config

Caused by:
java.lang.NoClassDefFoundError - javax/servlet/jsp/jstl/core/Config

ricardolecheta

vc precisa adicionar algum jstl.jar no seu classpath

Criado 1 de novembro de 2008
Ultima resposta 1 de nov. de 2008
Respostas 3
Participantes 2