zoukankan      html  css  js  c++  java
  • jstl插件使用

    jstl功能

    使用if语句,如果满足某种条件,则显示相关html节点

    <!-- https://mvnrepository.com/artifact/javax.servlet/jstl -->
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
        <version>1.2</version>
    </dependency>

    在相关界面html标签前面开头 加上

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

    相关代码

     <c:if test="${message != null} ">
        <div class="alert alert-danger alert-dismissible">
         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
         ${message}
        </div>
       </c:if>
  • 相关阅读:
    第三章例3-3
    第三章例3-2
    第二章例2-11
    第二章例2-10
    第二章例2-9
    204
    205
    202
    203
    201
  • 原文地址:https://www.cnblogs.com/2016-zck/p/13274933.html
Copyright © 2011-2022 走看看