<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
这两出现了红线是缺少什么?
错误提示:Cannot find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
请问这怎么改?
谢谢了。
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
这两出现了红线是缺少什么?
错误提示:Cannot find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
请问这怎么改?
谢谢了。
“http://java.sun.com/jsp/jstl/core”这种是“网络版”,可能会导致eclipse报错,但是不影响运行。
建议把jstl的几个标签库的tld文件都放到项目的目录下,和其他自定义的tld放一起,比如“/WEB-INF/tld/”,然后“uri="/WEB-INF/tld/c.tld"”这样就好了。