jsp标签====jstl标准标签库

jstl是第三方的标签库。

如果在不使用框架的前提下,可以用jstl组件完成相关的操作。

要在Tomcat中安装JSTL,有下面三个步骤:

  • 拷贝JSTL中的lib上当下的 JAR文件到Tomcat的lib目录中.
  • 拷贝JSTL TLD文件到Tomcat的web-inf目录中
  • 修改web.xml文件包含这些TLD文件

    <jsp-config>
            <taglib>
                <taglib-uri>http://www.mldn.cn/jstl/core</taglib-uri>
                <taglib-location>/WEB-INF/c.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>http://www.mldn.cn/jstl/fmt</taglib-uri>
                <taglib-location>/WEB-INF/fmt.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>http://www.mldn.cn/jstl/fn</taglib-uri>
                <taglib-location>/WEB-INF/fn.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>http://www.mldn.cn/jstl/sql</taglib-uri>
                <taglib-location>/WEB-INF/sql.tld</taglib-location>
            </taglib>
            <taglib>
                <taglib-uri>http://www.mldn.cn/jstl/x</taglib-uri>
                <taglib-location>/WEB-INF/x.tld</taglib-location>
            </taglib>

      </jsp-config>

    最核心最重要的是的是<c:   >标签,也是用的最多的。可以完成输出、判断、迭代等。。。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值