zoukankan      html  css  js  c++  java
  • JSTL 引入

    首先要明白jstl有如下版本: 
     

    jstl1.0的引入方式为:

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

    jstl1.1的引入方式为:

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

        注意:在jstl1.1版本的jar包中,既包含1.0版本的tld文件,又包含1.1版本的tld文件。所以在页面上引入jstl的时候,上面两种方式都不会报错。但是jstl1.0是不支持EL表达式的(EL表达式是JSP2.0为了简化JSP页面中对对象的访问方式而引入的一种简捷语言,而jstl1.0的规范是JSP1.2,当时还没有EL表达式。),所以如果在页面上使用的jstl标签中包含了EL表达式,那么就会出错。

    According to TLD or attribute directive in tag file, attribute value does not accept any expressions。

    所以,推荐使用jstl1.1的引入方式。 
        <taglib uri="http://java.sun.com /jsp/jstl/core" prefix="c" /> 

  • 相关阅读:
    反向迭代
    c++知识点
    LeetCode-Count Bits
    LeetCode-Perfect Rectangle
    LeetCode-Perfect Squares
    LeetCode-Lexicographical Numbers
    LeetCode-Find Median from Data Stream
    LeetCode-Maximal Square
    LeetCode-Number of Digit One
    LeetCode-Combination Sum IV
  • 原文地址:https://www.cnblogs.com/itcui/p/5837302.html
Copyright © 2011-2022 走看看