EL表达式new

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/10 0010
  Time: 下午 5:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


    Title
    


    
    
    

    
    ${heheda}

    
    ${td.name}
    ${sessionScope.td.age}

    
    ${td["short_name"]}

    
    ${mapVal.key}
    ${mapVal["1"]}

    
    
    
    ${mapVal["1"] == "value2"}
    
    ${empty ""}
    ${empty null}
    ${!not empty "aaa"}
    
    ${mapVal["1"]=="value2"?"等于":"不等于"}
    
    ${mapVal["1"]=="value2"?(mapVal.key=="value"?"A":"B"):"C"}

    
    ${requestScope.number == 1}
    ${requestScope.number == "1"}
    
    
    ${pageContext.request.contextPath}
    ${header["Cookie"]}
    ${cookie.JSESSIONID.value}

    ${requestScope.bl == false}
    ${requestScope.bl == "false"}



注意











  • 几乎所有运算符都可以用在el中


你可能感兴趣的:(EL表达式new)