简单jsf应用在eclipse中的tomcat运行ok,export出来运行会报错,什么问题!
环境:
wtp1.53 all in one + jsf plugin
tomcat5.5.20
jdk1.6
jsf-1_1_01
jstl-1.1.2
默认(唯一)页面index.html:
<!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=UTF-8 ">
<title> Insert title here </title>
</head>
<body>
<a href = "index.faces "> click here to start the jsf example </a>
</body>
</html>
--------------------------------------
由index.html连接到index.jsp
index.jsp:
<%@ 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/jsf/core " prefix = "f " %>
<%@ taglib uri = "http://java.sun.com/jsf/html " prefix = "h " %>
<html>
<f:view>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=ISO-8859-1 ">
<title> index </title>
</head>
<body>
<h:form>
<h:inputText value = "#{user.name} "> </h:inputText>
<h:commandButton value = "ok " action = "submit "> </h:commandButton>
</h:form>
</body>
</f:view>
</html>
--------------------------------------
然后index.jsp在跳转到home.jsp(在faces-config.xml中配置该导航规则)
home.jsp:
<%@ 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/jsf/core " prefix = "f " %>
<%@ taglib uri = "http://java.sun.com/jsf/html " prefix = "h " %>
<html>
<f:view>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=ISO-8859-1 ">
<title> home </title>
</head>
<body>
<h:outputText value = "#{user.name} "> </h:outputText>
</body>
</f:view>
</html>
--------------------------------------
web.xml:
<?xml version= "1.0 " encoding= "UTF-8 "?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsyste