jstl标签库错误(jstl学习)

初次使用JSTL时,虽然我们在jsp页面上已经加上了:

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

但是我们在启动服务器运行此jsp时,tomcat会提示下面的错误:

 

严重: Servlet.service() for servlet jsp threw exception

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

 

原因在哪呢?

    后来经查阅相应的答案,又加上自己的实验,经过下面的配置可以解决上面的问题:

把jstl.jar, standard.jar 这两个文件移到Tomcat的 shared/lib 中

引入它们之后,重启tomcat就可以了.

posted @ 2013-07-12 16:04  hadoop在云端  阅读(187)  评论(0)    收藏  举报