http://java.sun.com/jsp/jstl/core与http://java.sun.com/jstl/core 之间的区别
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了http://java.sun.com/jsp/jstl/core与http://java.sun.com/jstl/core 之间的区别,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1840字,纯文字阅读大概需要3分钟。
内容图文
![http://java.sun.com/jsp/jstl/core与http://java.sun.com/jstl/core 之间的区别](/upload/InfoBanner/zyjiaocheng/703/54abadfa152b42d898291d65e78f20f3.jpg)
参见英文答案 > Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core” 13个
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> //line-1
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c1" %> //line-2
第1行和第2行之间有什么区别吗? jsp文件中的第2行没有给出任何错误,但是另一个jsp中的第1行给出了错误
Can not find the tag library descriptor for
“07001”
我已经看到问题here的解决方案,但无法理解
什么是“Facelets”
It is true that Facelets 1.x and 2.x uses different namespaces for the
JSTL tag library. It was less or more a namespace bug in Facelets 1.x
and has been fixed for Facelets 2.x.
- The real JSTL 1.0 taglib uses the URI 07003.
- The real JSTL 1.1/1.2 taglib uses the URI 07001.
- Facelets 1.x uses the URI 07003.
- Facelets 2.x uses the URI 07001.
- Facelets 2.2+ uses the URI 07007.
You can find all Facelets 2.x tags in the Facelets tag library
documentation. Facelets don’t ship with the full tag set as the real
JSTL taglib. Only a few of the<c:xxx>
and the full set of<fn:xxx>
are copied into Facelets. The<fmt:xxx>
,<sql:xxx>
and<xml:xxx>
tags
are not taken over in Facelets.
解决方法:
如果您正在使用(使用JSTL 1.2)
<%@ taglib prefix =“c”uri =“http://java.sun.com/jsp/jstl/core”%>
意味着使用您不需要的EL表达式< c:out>.您可以直接将EL表达式插入到jsp页面,如${propertyName}
使用时(使用JSTL 1.0已弃用)
<%@ taglib prefix =“c”uri =“http://java.sun.com/jsp/core”%>
您不能直接在需要的jsp页面上使用EL Expressions< c:out>.页面上的EL表达式无效.例如< c:out value =“${propertyName}”>.
您的web-app版本(在web.xml中找到)也应该降至2.3以使用http://java.sun.com/jsp/core,这又是太旧了.
结论:
<%@ taglib prefix =“c”uri =“http://java.sun.com/jsp/jstl/core”%> – 可以直接使用EL
<%@ taglib prefix =“c”uri =“http://java.sun.com/jsp/core”%> – 不能直接使用EL
内容总结
以上是互联网集市为您收集整理的http://java.sun.com/jsp/jstl/core与http://java.sun.com/jstl/core 之间的区别全部内容,希望文章能够帮你解决http://java.sun.com/jsp/jstl/core与http://java.sun.com/jstl/core 之间的区别所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。