【发布时间】:2011-03-13 05:38:30
【问题描述】:
我在 Netbeans IDE 中工作并切换到 Eclipse。
我在 Eclipse 中使用向导创建了一个简单的基于 JSF 2.0 的程序。完整的文件是这样的。
index.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/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=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h1>Hi, This is my JSF 2. Applicaiton</h1>
<br />
Click <h:link outcome="UserLogin">here</h:link> to go to login
</f:view>
</body>
</html>
当我在 tomcat 7.0 服务器中部署此应用程序时,我收到以下错误消息,
org.apache.jasper.JasperException: /index.jsp(14,6) No tag "link" defined in tag library imported with prefix "h"
在我的 IDE 中,我也可以看到
帮助表示赞赏。
【问题讨论】: