在JSP文件上不能正确使用标签库

来源:互联网 发布:祁大侠 编程 编辑:程序博客网 时间:2024/04/29 10:17

1、 JSP文件上使用标签库

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

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

时出现问题,错误信息如下:

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

原因:Tomcat5.0的组件库里缺了两个包,jtsl1.2.jarstanard.jar

解决方法:把Tomcat升级到6.0

原创粉丝点击