zoukankan      html  css  js  c++  java
  • JSTL1.1配置

    下载 jakarta-taglibs-standard-1.1.2.zip 包并解压,将 jakarta-taglibs-standard-1.1.2/lib/ 下的两个 jar 文件:standard.jar 和 jstl.jar 文件拷贝到 /WEB-INF/lib/ 下。

    将 tld 下的需要引入的 tld 文件复制到 WEB-INF 目录下。

    接下来我们在 web.xml 文件中添加以下配置:

     1 <jsp-config>
     2     <taglib>
     3     <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
     4     <taglib-location>/WEB-INF/fmt.tld</taglib-location>
     5     </taglib>
     6     <taglib>
     7     <taglib-uri>http://java.sun.com/jsp/jstl/fmt-rt</taglib-uri>
     8     <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
     9     </taglib>
    10     <taglib>
    11     <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    12     <taglib-location>/WEB-INF/c.tld</taglib-location>
    13     </taglib>
    14     <taglib>
    15     <taglib-uri>http://java.sun.com/jsp/jstl/core-rt</taglib-uri>
    16     <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
    17     </taglib>
    18     <taglib>
    19     <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>
    20     <taglib-location>/WEB-INF/sql.tld</taglib-location>
    21     </taglib>
    22     <taglib>
    23     <taglib-uri>http://java.sun.com/jsp/jstl/sql-rt</taglib-uri>
    24     <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
    25     </taglib>
    26     <taglib>
    27     <taglib-uri>http://java.sun.com/jsp/jstl/x</taglib-uri>
    28     <taglib-location>/WEB-INF/x.tld</taglib-location>
    29     </taglib>
    30     <taglib>
    31     <taglib-uri>http://java.sun.com/jsp/jstl/x-rt</taglib-uri>
    32     <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
    33     </taglib>
    34     </jsp-config>
  • 相关阅读:
    U盘引导Linux安装 CentOS .3
    Linux CentOS 6.3 网络连接 修复 虚拟机共享主机网络
    内存中“堆”和“栈”的区别
    求助帖--C++中单引号' '内多个字符是什么意思
    Cent Os6.3 设置中文输入法
    WPF中调用matlab制作的dll进行图像处理
    Python中的round()函数原理
    Eclipse+Pydev环境搭建
    5-4-shell:数组
    5-3-shell:流程控制--判断循环
  • 原文地址:https://www.cnblogs.com/lhl0131/p/13211759.html
Copyright © 2011-2022 走看看