关于JSF的问题,太郁闷啦

来源:百度知道 编辑:UC知道 时间:2024/05/29 09:10:51
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
我觉得上面应该没有错啊,为什么会报下面的错误呢,太郁闷啦,在网上查了很久没找到个原因

The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application

看看你的web.xml里有没有 <context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
然后在看看jsf的几个jar是不是都在lib下